* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
}

button,
a {
    font: inherit;
}

.topo {
    width: 100%;
}

.topo-conteudo {
    max-width: 1320px;
    min-height: 72px;
    padding: 12px 26px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #45340a;
    text-decoration: none;
    white-space: nowrap;
}

.marca-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.marca-nome {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .3px;
}

.topo-descricao {
    font-size: 13px;
    color: #69756a;
}

.topo-descricao strong {
    color: #405c46;
}

.topo-separador {
    color: #a2aca4;
    margin: 0 5px;
}

.topo-data {
    margin-left: auto;
    color: #69766b;
    font-size: 12px;
    white-space: nowrap;
}

.topo-data i {
    margin-right: 5px;
}

.area-sistema {
    white-space: nowrap;
    border: 1px solid #d9e4da;
    border-radius: 30px;
    background: #f8faf8;
    padding: 12px 17px;
    font-size: 12px;
    font-weight: 800;
    color: #385342;
    text-decoration: none;
    transition: .2s;
}

.area-sistema:hover {
    background: #eaf3ec;
    border-color: #bad6c1;
}

.area-sistema i {
    margin-right: 7px;
}

/* =========================================================
   ENTRADA - ESTRUTURA PRINCIPAL E RODAPÉ
========================================================= */

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.entrada {
    flex: 1 0 auto;
    min-height: 0;

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

    padding: 35px 20px 0;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.entrada .painel {
    flex: 1 0 auto;

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

    width: min(100%, 1060px);

    padding: 20px 0 35px;
}

.entrada .rodape {
    flex: 0 0 auto;
    width: 100%;

    margin: 0;
    padding: 14px 20px;

    background: rgba(0, 0, 0, 0.15);
    color: #cbd5e1;

    text-align: center;
    font-size: 11px;
    line-height: 1.6;

    border: 0;
}

.entrada .rodape a {
    color: #22c55e;
    text-decoration: none;
}

.entrada .rodape a:hover {
    color: #4ade80;
    text-decoration: underline;
}

.painel {
    text-align: center;
    width: min(100%, 1060px);
}

.logo {
    display: block;
    max-width: 155px;
    max-height: 140px;
    object-fit: contain;
    margin: 0 auto 22px;
}

.intro {
    font-size: 12px;
    letter-spacing: 3px;
    color: #698070;
    font-weight: 800;
    margin: 0;
}

.painel h1 {
    font-size: clamp(26px, 4.5vw, 45px);
    line-height: 1.16;
    margin: 12px auto 10px;
    max-width: 880px;
    font-weight: 850;
}

.subtitulo {
    font-weight: 800;
    color: #56745e;
}

.descricao {
    margin: 22px 0 30px;
    font-size: 15px;
}

.acoes {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
}

.acao {
    position: relative;
    width: 210px;
    min-height: 174px;
    padding: 24px 16px;
    border: 1px solid #dce6dd;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 11px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.acao:not(.acao-indisponivel):not(.acao-tempo-real-inativo):hover {
    transform: translateY(-4px);
}

.acao>i {
    font-size: 29px;
}

.acao strong {
    font-size: 15px;
    letter-spacing: .5px;
}

.acao small {
    font-size: 12px;
    line-height: 1.4;
}

.acao-inscricao {
    box-shadow: 0 11px 30px #147c4040;
}

.acao-inscricao small {
    opacity: .9;
}

.acao-indicador {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 3px;
}

.acao-indicador i {
    margin-left: 4px;
}

.acao-indisponivel {
    background: #dfeae1;
    border-color: #d2e0d5;
    color: #6a7c6e;
    box-shadow: none;
    cursor: not-allowed;
}

.acao-indisponivel>i,
.acao-indisponivel small {
    color: #718575;
}

.acao-tempo-real small {
    opacity: .85;
}

.status-tempo-real {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #b4e2c4;
}

.ponto-ao-vivo {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #5ce18b;
    border-radius: 50%;
    margin-right: 4px;
}

.acao-tempo-real-inativo {
    background: #e9eef3;
    border-color: #dbe3ea;
    box-shadow: none;
    color: #667b8e;
    cursor: not-allowed;
}

.acao-tempo-real-inativo>i,
.acao-tempo-real-inativo small,
.acao-tempo-real-inativo .status-tempo-real {
    color: #7e91a2;
}

.rodape {
    font-size: 11px;
}

dialog {
    width: min(92vw, 850px);
    max-height: 90dvh;
    border: 0;
    border-radius: 16px;
    padding: 0;
}

.modal-topo {
    padding: 15px 20px;
    border-bottom: 1px solid #e5ebe6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-topo button {
    border: 0;
    background: #edf2ee;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 24px;
    cursor: pointer;
}

dialog .convite {
    display: block;
    max-width: 100%;
    max-height: calc(90dvh - 70px);
    object-fit: contain;
    margin: auto;
}

dialog iframe {
    width: min(90vw, 850px);
    height: 75dvh;
    border: 0;
}

dialog .regtexto {
    padding: 25px;
    max-height: 75dvh;
    overflow: auto;
    line-height: 1.6;
}

@media (max-width:1100px) {
    .topo-descricao {
        display: none;
    }

    .topo-data {
        margin-left: auto;
    }
}

@media (max-width:650px) {
    .topo-conteudo {
        padding: 10px 14px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .marca-logo {
        width: 35px;
        height: 35px;
    }

    .marca-nome {
        font-size: 15px;
    }

    .area-sistema {
        margin-left: auto;
        padding: 10px 12px;
        font-size: 10px;
    }

    .topo-data {
        order: 3;
        flex-basis: 100%;
        text-align: center;
        font-size: 11px;
        padding: 1px 0 3px;
    }

    .entrada {
        padding: 30px 13px 25px;
    }

    .logo {
        max-width: 120px;
        max-height: 110px;
        margin-bottom: 17px;
    }

    .intro {
        font-size: 11px;
    }

    .descricao {
        font-size: 13px;
        margin: 18px 0 24px;
    }

    .acoes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .acao {
        width: 100%;
        min-width: 0;
        min-height: 150px;
        padding: 18px 9px;
        gap: 10px;
    }

    .acao>i {
        font-size: 25px;
    }

    .acao strong {
        font-size: 12px;
    }

    .acao small {
        font-size: 11px;
    }

    .acao:last-child:nth-child(odd) {
        grid-column: 1/-1;
    }

    .rodape {
        font-size: 10px;
    }
}

@media (max-width:380px) {
    .marca-nome {
        font-size: 13px;
    }

    .area-sistema {
        font-size: 9px;
        padding: 9px;
    }

    .acao {
        min-height: 142px;
    }
}

/* ==============================================
   ENTRADA - TRÊS BOTÕES FIXOS
============================================== */

.acoes {
    max-width: 820px;
    margin: 0 auto;
}

/* Nome da etapa abaixo do título principal */

.subtitulo {
    margin: 4px auto 0;
    line-height: 1.5;
    font-size: clamp(12px, 1.8vw, 17px);
    letter-spacing: .3px;
}

/* ==============================================
   MODAL INFORMAÇÕES
============================================== */

.modal-informacoes {
    width: min(94vw, 960px);
}

.info-corpo {
    padding: 22px 26px 28px;
    max-height: calc(90dvh - 65px);
    overflow-y: auto;
}

.info-imagem {
    display: block;
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 12px;
}

.info-identificacao {
    text-align: center;
    margin-bottom: 22px;
}

.info-identificacao h2 {
    font-size: clamp(19px, 3vw, 27px);
    margin: 0 0 6px;
    color: #263e2d;
}

.info-identificacao p {
    margin: 0;
    color: #68816e;
    font-weight: 700;
}

.info-texto {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.info-texto img {
    max-width: 100%;
    height: auto;
}

/* Blocos da primeira tela da inscrição */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.info-card {
    background: #f7faf7;
    border: 1px solid #e0eae1;
    border-radius: 13px;
    padding: 18px;
    min-width: 0;
}

.info-card>i {
    font-size: 24px;
    color: #328152;
    margin-bottom: 9px;
}

.info-card h3 {
    font-size: 16px;
    margin: 0 0 10px;
    color: #274c32;
}

/* Botão Regulamento */

.info-rodape {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.info-regulamento {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 12px;
    background: #247b48;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 22px;
    font-weight: 800;
    cursor: pointer;
}

.info-regulamento:hover {
    background: #176139;
    color: #ffffff;
}

.info-vazio {
    text-align: center;
    color: #758579;
}

/* ==============================================
   RESPONSIVIDADE
============================================== */

@media (max-width: 650px) {
    .acoes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acao:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .info-corpo {
        padding: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 15px;
    }

    .info-imagem {
        max-height: 240px;
    }
}

/* ==============================================
   MODAL INFORMAÇÕES - LAYOUT DUAS COLUNAS
============================================== */

dialog.modal-informacoes {
    border: 0;
    border-radius: 18px;
}

.modal-informacoes .modal-topo {
    border-bottom: 1px solid #e3eae4;
}

.modal-informacoes .info-corpo {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Estrutura principal */

/* ==============================================
   COLUNA 1 - IMAGEM / CONVITE
============================================== */

.modal-informacoes .info-coluna-imagem {
    top: 0;
}

.modal-informacoes .info-imagem {
    max-width: 100%;
}

/* ==============================================
   COLUNA 2 - INFORMAÇÕES
============================================== */

.modal-informacoes .info-identificacao {
    text-align: center;
    margin: 0 0 22px;
}

.modal-informacoes .info-identificacao h2 {
    font-size: clamp(19px, 2vw, 26px);
    line-height: 1.25;
    margin: 0 0 7px;
    color: #243d2b;
}

.modal-informacoes .info-identificacao p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #5e7866;
}

.modal-informacoes .info-texto {
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.modal-informacoes .info-texto-final {
    margin-top: 18px;
    text-align: center;
}

/* Cartões informativos */

.modal-informacoes .info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.modal-informacoes .info-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid #dce6de;
    border-radius: 13px;
}

.modal-informacoes .info-card-cabecalho {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.modal-informacoes .info-card-icone {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e2d8;
    border-radius: 10px;
    font-size: 17px;
}

.modal-informacoes .info-card h3 {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    color: #294d34;
}

.modal-informacoes .info-card-conteudo {
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* Preserva a formatação HTML cadastrada */

.modal-informacoes .info-card-conteudo p {
    margin: 0 0 10px;
}

.modal-informacoes .info-card-conteudo p:last-child {
    margin-bottom: 0;
}

.modal-informacoes .info-card-conteudo ul,
.modal-informacoes .info-card-conteudo ol {
    padding-left: 19px;
    margin: 8px 0;
}

.modal-informacoes .info-card-conteudo img,
.modal-informacoes .info-texto img {
    max-width: 100%;
    height: auto;
}

/* ==============================================
   REGULAMENTO CENTRALIZADO
============================================== */

.modal-informacoes .info-rodape {
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
}

.modal-informacoes .info-regulamento {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 0;
    border-radius: 12px;
    background: #247b48;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.modal-informacoes .info-regulamento:hover {
    background: #176239;
    color: #fff;
}

/* ==============================================
   TABLET
============================================== */

@media (max-width: 1050px) {
    .modal-informacoes .info-layout {
        grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
        gap: 16px;
    }

    .modal-informacoes .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   MOBILE
============================================== */

@media (max-width: 700px) {
    dialog.modal-informacoes {
        max-height: 94dvh;
        border-radius: 13px;
    }

    .modal-informacoes .info-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .modal-informacoes .info-coluna-imagem {
        position: static;
    }

    .modal-informacoes .info-grid {
        grid-template-columns: 1fr;
    }

    .modal-informacoes .info-identificacao h2 {
        font-size: 20px;
    }

    .modal-informacoes .info-regulamento {
        width: 100%;
    }
}

/* Coluna reservada para imagem do torneio */

.modal-informacoes .info-coluna-imagem {
    border: 1px solid #e0e8e1;
    border-radius: 14px;
}

/* Imagem cadastrada */

.modal-informacoes .info-imagem {
    border-radius: 9px;
}

/* Quando não existir imagem */

.modal-informacoes .info-sem-imagem {
    width: 100%;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.modal-informacoes .info-sem-imagem i {
    font-size: 46px;
    color: #a4b4a8;
}

.modal-informacoes .info-sem-imagem span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 700px) {
    .modal-informacoes .info-sem-imagem {
        min-height: 200px;
    }
}

/* ==============================================
   MODAL INFORMAÇÕES - AJUSTES FINAIS
============================================== */

/* Modal com cabeçalho fixo e conteúdo controlado */

dialog.modal-informacoes {
    width: min(96vw, 1380px);
    max-width: 1380px;
    height: min(94dvh, 920px);
    max-height: 94dvh;
    padding: 0;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

dialog.modal-informacoes[open] {
    display: flex;
}

/* Cabeçalho no padrão do sistema */

.modal-informacoes .modal-topo {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #009fe3;
    border: 0;
    color: #fff;
}

.modal-informacoes .modal-topo-textos {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-informacoes .modal-topo strong {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.modal-informacoes .modal-topo small {
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    line-height: 1.4;
}

.modal-informacoes .modal-topo button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #243c50;
    font-size: 17px;
    cursor: pointer;
}

.modal-informacoes .modal-topo button:hover {
    background: #e9f4fa;
}

/* Remove a rolagem do corpo geral */

.modal-informacoes .info-corpo {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 18px;
    overflow: hidden;
}

/* As duas colunas ocupam a altura disponível */

.modal-informacoes .info-layout {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: 22px;
    height: 100%;
    min-height: 0;
    align-items: stretch;
}

/* Imagem parada à esquerda */

.modal-informacoes .info-coluna-imagem {
    position: static;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.modal-informacoes .info-imagem {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0;
}

/* Apenas a coluna direita possui rolagem */

.modal-informacoes .info-coluna-dados {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 4px 10px 14px 2px;
    scrollbar-width: thin;
    scrollbar-color: #a9b9ae transparent;
}

/* Quantidade de colunas conforme etapa.layout */

.modal-informacoes .info-grid.info-cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.modal-informacoes .info-grid.info-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-informacoes .info-grid.info-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Regulamento logo após o texto */

.modal-informacoes .info-rodape {
    display: flex;
    justify-content: center;
    margin: 18px 0 4px;
    padding: 18px 0 0;
    border-top: 1px solid #e2eae3;
}

/* Em telas intermediárias, limita 3 colunas a 2 */

@media (min-width: 701px) and (max-width: 1200px) {
    .modal-informacoes .info-grid.info-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: imagem acima, informações abaixo */

@media (max-width: 700px) {
    dialog.modal-informacoes {
        width: 96vw;
        height: 94dvh;
    }

    .modal-informacoes .modal-topo {
        padding: 13px 15px;
    }

    .modal-informacoes .modal-topo strong {
        font-size: 14px;
    }

    .modal-informacoes .info-corpo {
        padding: 12px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .modal-informacoes .info-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 18px;
    }

    .modal-informacoes .info-coluna-imagem {
        flex: 0 0 auto;
        height: auto;
        min-height: 220px;
        padding: 8px;
    }

    .modal-informacoes .info-imagem {
        width: 100%;
        height: auto;
        max-height: 350px;
    }

    .modal-informacoes .info-coluna-dados {
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
        padding: 0;
    }

    .modal-informacoes .info-grid.info-cols-1,
    .modal-informacoes .info-grid.info-cols-2,
    .modal-informacoes .info-grid.info-cols-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Texto inicial sem o título do campeonato */

.modal-informacoes .info-texto-inicio {
    margin-top: 0;
    margin-bottom: 18px;
    text-align: center;
}

/* SELETOR DE ETAPAS - estilo do modal Selecionar Rodada */

.trocar-etapa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px 12px;
    padding: 9px 14px;
    border: 1px solid #bcd8c4;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .35px;
    cursor: pointer;
    vertical-align: middle;
    transition: .2s;
}

.painel .subtitulo {
    display: inline-block;
    margin-right: 0;
}

dialog.modal-selecionar-etapa {
    width: min(94vw, 570px);
    max-height: 85dvh;
    padding: 0;
    border: 0;
    border-radius: 13px;
    box-shadow: 0 24px 75px #0008;
    overflow: hidden;
}

dialog.modal-selecionar-etapa::backdrop {
    background: rgba(0, 0, 0, .73);
}

.modal-selecionar-etapa .modal-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #03a2e7;
    color: #fff;
}

.modal-selecionar-etapa .modal-topo-textos h2 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.3;
    color: #fff;
    font-weight: 850;
}

.modal-selecionar-etapa .modal-topo-textos p {
    margin: 0;
    font-size: 13px;
    color: #fff;
}

.modal-selecionar-etapa .modal-topo button {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #23384c;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.seletor-etapas-lista {
    max-height: calc(85dvh - 83px);
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.seletor-etapa-opcao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid #dde5e0;
    border-radius: 9px;
    text-decoration: none;
    transition: .2s;
    text-align: left;
}

.seletor-etapa-texto {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.seletor-etapa-texto strong {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.seletor-etapa-texto small {
    font-size: 12px;
}

.seletor-etapa-opcao>i {
    font-size: 18px;
    flex-shrink: 0;
}

@media (max-width:700px) {
    .painel .subtitulo {
        display: block;
    }

    .trocar-etapa {
        margin: 4px 0 14px;
    }

    .modal-selecionar-etapa .modal-topo-textos h2 {
        font-size: 16px;
    }
}

/* ============================================================
   TRUCO GAÚCHO | TEMA DARK PÚBLICO
   Conteúdo grafite como painel/inscrição; navbar permanece branca.
   ============================================================ */

:root {
    --tg-public-bg: #454b52;
    --tg-public-panel: #343a40;
    --tg-public-card: #3d444b;
    --tg-public-deep: #292e34;
    --tg-public-border: #505961;
    --tg-public-text: #f4f6f9;
    --tg-public-muted: #b9c4ce;
}

body {
    background: #343a40;
    color: var(--tg-public-text);
}

/* Cabeçalho deliberadamente claro, como nas telas originais */

.topo {
    background: #fff;
    border-bottom: 1px solid #e6e8eb;
    box-shadow: 0 2px 10px #0002;
}

.topo .marca,
.topo .marca-nome {
    color: #45340a;
}

.topo .topo-descricao,
.topo .topo-data {
    color: #6b7280;
}

.topo .topo-descricao strong {
    color: #45340a;
}

.topo .area-sistema {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #344454;
}

.topo .area-sistema:hover {
    background: #eaf0f5;
    border-color: #c8d4df;
    color: #1f2937;
}

/* Entrada */

.painel h1 {
    color: #fff;
    text-shadow: 0 2px 12px #0003;
}

.intro,
.subtitulo {
    color: #d1e0ed;
}

.descricao {
    color: #c4cbd3;
}

.acao {
    background: var(--tg-public-panel);
    border-color: var(--tg-public-border);
    color: #f4f6f9;
    box-shadow: 0 6px 17px #0003;
}

.acao>i {
    color: #53c1ed;
}

.acao small {
    color: #c0cad3;
}

.acao:not(.acao-indisponivel):not(.acao-tempo-real-inativo):hover {
    background: #414950;
    border-color: #6b7a86;
    box-shadow: 0 12px 28px #0005;
}

.acao-inscricao {
    background: linear-gradient(145deg, #208a4c, #126b39);
    border-color: #2aa75e;
    color: #fff;
}

.acao-inscricao>i,
.acao-inscricao small {
    color: #fff;
}

.acao-tempo-real {
    color: #fff;
}

.acao-tempo-real>i,
.acao-tempo-real small {
    color: #fff;
}

.acao-indisponivel,
.acao-tempo-real-inativo {
    background: #30363c;
    border-color: #454c54;
    color: #9da8b2;
    box-shadow: none;
}

.acao-indisponivel>i,
.acao-indisponivel small,
.acao-tempo-real-inativo>i,
.acao-tempo-real-inativo small {
    color: #99a5b1;
}

.rodape {
    border-top: 1px solid #505961;
}

/* Diálogos: fundo escuro, cabeçalhos azuis preservados */

dialog {
    background: #343a40;
    color: #f4f6f9;
    box-shadow: 0 24px 70px #0009;
}

dialog::backdrop {
    background: #0b1018d9;
}

dialog .modal-topo {
    border-color: #4b5560;
}

dialog .modal-topo:not(.modal-informacoes .modal-topo):not(.modal-selecionar-etapa .modal-topo) {
    background: #303943;
    color: #fff;
}

dialog .modal-topo strong,
dialog .modal-topo h2 {
    color: #fff;
}

dialog .regtexto {
    color: #eef2f6;
}

dialog .regtexto a {
    color: #7bc6ff;
}

dialog.modal-informacoes {
    background: #343a40;
    color: #edf2f6;
}

.modal-informacoes .info-corpo {
    background: #343a40;
    color: #e9edf2;
}

.modal-informacoes .info-coluna-imagem {
    background: #292e34;
    border-color: #515c67;
}

.modal-informacoes .info-sem-imagem {
    color: #b2bec9;
}

.modal-informacoes .info-identificacao h2,
.modal-informacoes .info-card h3 {
    color: #fff;
}

.modal-informacoes .info-identificacao p,
.modal-informacoes .info-vazio {
    color: #b7c6d3;
}

.modal-informacoes .info-texto,
.modal-informacoes .info-card-conteudo {
    color: #e9edf2;
}

.modal-informacoes .info-card {
    background: #3d444b;
    border-color: #56616b;
    color: #edf2f6;
}

.modal-informacoes .info-card-icone {
    background: #2b3c48;
    border-color: #526878;
    color: #60c3ec;
}

.modal-informacoes .info-rodape {
    border-color: #515c67;
}

dialog.modal-selecionar-etapa {
    background: #343a40;
    color: #fff;
}

.seletor-etapa-opcao {
    background: #3e464e;
    border-color: #58636d;
    color: #fff;
}

.seletor-etapa-opcao:hover {
    background: #4a5660;
    border-color: #73a8c8;
    color: #fff;
}

.seletor-etapa-opcao.selecionada {
    background: #214d3c;
    border-color: #40a678;
    color: #fff;
}

.seletor-etapa-texto small {
    color: #b8c6d2;
}

.seletor-etapa-opcao>i {
    color: #b1c0cc;
}

.seletor-etapa-opcao.selecionada>i {
    color: #73e0a7;
}

/* Ajustes de identidade - entrada */

.acao-inscricao:not(.acao-indisponivel):not(.acao-tempo-real-inativo):hover {
    background: linear-gradient(145deg, #2ab764, #158049) !important;
    border-color: #58d48c !important;
    color: #fff !important;
}

.acao-tempo-real {
    background: linear-gradient(145deg, #168de0, #0765a7) !important;
    border-color: #39a9f2 !important;
    box-shadow: 0 9px 25px #007bd84d !important;
}

.acao-tempo-real:not(.acao-indisponivel):not(.acao-tempo-real-inativo):hover {
    background: linear-gradient(145deg, #32aaff, #0877ca) !important;
    border-color: #83ceff !important;
    color: #fff !important;
}

.acao-inscricao:hover>i,
.acao-tempo-real:hover>i,
.acao-inscricao:hover small,
.acao-tempo-real:hover small {
    color: #fff !important;
}

.acao-informacoes {
    background: #f8fafc !important;
    border-color: #e1e8f0 !important;
    color: #233449 !important;
}

.acao-informacoes>i {
    color: #1677b9 !important;
}

.acao-informacoes small {
    color: #66788b !important;
}

.acao-informacoes:not(.acao-indisponivel):hover {
    background: #fff !important;
    border-color: #9bc7eb !important;
    color: #142a3d !important;
    box-shadow: 0 12px 30px #0004 !important;
}

.trocar-etapa {
    background: linear-gradient(135deg, #ffbd28, #ee9010) !important;
    border-color: #ffd36d !important;
    color: #30200a !important;
    box-shadow: 0 5px 17px #e59c2840 !important;
}

.trocar-etapa:hover {
    background: linear-gradient(135deg, #ffce53, #ffab20) !important;
    color: #231807 !important;
    border-color: #ffe098 !important;
}

.rodape a {
    color: #45c879;
    text-decoration: none;
    font-weight: 800;
}

.rodape a:hover {
    color: #82efab;
    text-decoration: underline;
}

/* RODAPÉ - SEM FAIXA DE FUNDO */

.rodape {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #aeb8c2 !important;
    padding: 16px 20px;
    text-align: center;
    line-height: 1.6;
}

/* =====================================================
   TEMPO REAL DESABILITADO - TELA DE ENTRADA
   ===================================================== */

.acao.acao-tempo-real-inativo,
.acao.acao-tempo-real.acao-tempo-real-inativo,
.acao.acao-tempo-real.acao-indisponivel {
    background: #30363d !important;
    border: 1px solid #4b5561 !important;
    color: #aeb8c3 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Mantém o mesmo visual ao passar o mouse */

.acao.acao-tempo-real-inativo:hover,
.acao.acao-tempo-real.acao-tempo-real-inativo:hover,
.acao.acao-tempo-real.acao-indisponivel:hover {
    background: #30363d !important;
    border-color: #4b5561 !important;
    color: #aeb8c3 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Ícones e textos sem alteração de cor */

.acao.acao-tempo-real-inativo i,
.acao.acao-tempo-real-inativo small,
.acao.acao-tempo-real-inativo strong,
.acao.acao-tempo-real-inativo span,
.acao.acao-tempo-real-inativo:hover i,
.acao.acao-tempo-real-inativo:hover small,
.acao.acao-tempo-real-inativo:hover strong,
.acao.acao-tempo-real-inativo:hover span {
    color: #aeb8c3 !important;
}

/* =====================================================
   TEMPO REAL - INDICADOR AO VIVO VERDE
   ===================================================== */

.acao.acao-tempo-real-ao-vivo .status-tempo-real.status-ao-vivo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #69FF9B !important;
    padding: 0 !important;
    font-weight: 800 !important;
}

.acao.acao-tempo-real-ao-vivo .ponto-ao-vivo {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #69FF9B !important;
    box-shadow: 0 0 0 0 rgba(105, 255, 155, .65);
    animation: entradaAoVivoVerde 1.5s infinite;
}

@keyframes entradaAoVivoVerde {
    0% {
        box-shadow: 0 0 0 0 rgba(105, 255, 155, .65);
        opacity: 1;
    }

    70% {
        box-shadow: 0 0 0 7px rgba(105, 255, 155, 0);
        opacity: .7;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(105, 255, 155, 0);
        opacity: 1;
    }
}

/* =====================================================
   RESULTADOS - TORNEIO FINALIZADO
   ===================================================== */

/* Azul escuro padrão */

.acao.acao-tempo-real-finalizado {
    background: linear-gradient(135deg,
            #205C94 0%,
            #173D69 100%) !important;
    border-color: #417DAD !important;
    color: #FFFFFF !important;
}

/* Hover continua em azul escuro, sem azul claro */

.acao.acao-tempo-real-finalizado:hover,
.acao.acao-tempo-real-finalizado:focus-visible {
    background: linear-gradient(135deg,
            #194B7C 0%,
            #102E50 100%) !important;
    border-color: #5486B3 !important;
    color: #FFFFFF !important;
}

/* Textos e ícone principal */

.acao.acao-tempo-real-finalizado>i,
.acao.acao-tempo-real-finalizado>strong,
.acao.acao-tempo-real-finalizado>small,
.acao.acao-tempo-real-finalizado .acao-indicador,
.acao.acao-tempo-real-finalizado:hover>i,
.acao.acao-tempo-real-finalizado:hover>strong,
.acao.acao-tempo-real-finalizado:hover>small,
.acao.acao-tempo-real-finalizado:hover .acao-indicador {
    color: #FFFFFF !important;
}

/* Remove faixa e deixa somente texto e bandeira vermelhos */

.acao.acao-tempo-real-finalizado .status-tempo-real.status-finalizado,
.acao.acao-tempo-real-finalizado:hover .status-tempo-real.status-finalizado {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #FF6878 !important;
    padding: 0 !important;
    font-weight: 800 !important;
}

/* Bandeirinha vermelha */

.acao.acao-tempo-real-finalizado .status-finalizado i {
    color: #FF6878 !important;
    margin-right: 5px;
}

/* Acessibilidade */

@media (prefers-reduced-motion: reduce) {
    .acao.acao-tempo-real-ao-vivo .ponto-ao-vivo {
        animation: none !important;
    }
}

/* =====================================================
   RESULTADOS - TORNEIO FINALIZADO
   ===================================================== */

/* Botão padrão - azul escuro */

a.acao.acao-tempo-real.acao-tempo-real-finalizado {
    background: linear-gradient(135deg, #205C94, #173D69) !important;
    border: 1px solid #417DAD !important;
    color: #FFFFFF !important;
}

/* Hover - mantém o azul forte, sem clarear */

a.acao.acao-tempo-real.acao-tempo-real-finalizado:hover,
a.acao.acao-tempo-real.acao-tempo-real-finalizado:focus,
a.acao.acao-tempo-real.acao-tempo-real-finalizado:focus-visible {
    background: linear-gradient(135deg, #194B7C, #102E50) !important;
    border-color: #5486B3 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 24px rgba(8, 32, 60, 0.45) !important;
}

/* Mantém ícone, título e demais textos brancos no hover */

a.acao.acao-tempo-real.acao-tempo-real-finalizado:hover>i,
a.acao.acao-tempo-real.acao-tempo-real-finalizado:hover>strong,
a.acao.acao-tempo-real.acao-tempo-real-finalizado:hover>small,
a.acao.acao-tempo-real.acao-tempo-real-finalizado:hover .acao-indicador {
    color: #FFFFFF !important;
}

/* TORNEIO FINALIZADO - vermelho mais vivo */

/* Bandeirinha com o mesmo vermelho */

/* =====================================================
   TORNEIO FINALIZADO - AMARELO DOURADO
   ===================================================== */

/* Texto TORNEIO FINALIZADO */

a.acao.acao-tempo-real.acao-tempo-real-finalizado .status-tempo-real.status-finalizado,
a.acao.acao-tempo-real.acao-tempo-real-finalizado:hover .status-tempo-real.status-finalizado {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFD43B !important;
    font-weight: 900 !important;
}

/* Bandeirinha amarela */

a.acao.acao-tempo-real.acao-tempo-real-finalizado .status-finalizado i,
a.acao.acao-tempo-real.acao-tempo-real-finalizado:hover .status-finalizado i {
    color: #FFD43B !important;
}


/* =========================================================
   BACKGROUND GERAL - ENTRADA
========================================================= */

body .entrada {
    position: relative;
    flex: 1 0 auto;
    width: 100%;
    min-height: calc(100vh - 72px);

    background-color: #212529;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
}

/* Mantém o conteúdo acima da imagem */
body .entrada>.painel {
    position: relative;
    z-index: 1;
}

@media (max-width: 650px) {
    body .entrada {
        min-height: calc(100dvh - 110px);
        background-position: center center;
    }
}


/* =========================================================
   ENTRADA - RESPONSIVIDADE DO RODAPÉ
========================================================= */

@media (max-width: 650px) {

    .entrada {
        padding: 20px 13px 0;
    }

    .entrada .painel {
        padding: 15px 0 25px;
    }

    .entrada .rodape {
        padding: 12px 15px;
        font-size: 10px;
        line-height: 1.7;
    }
}


/* =========================================================
   ENTRADA - CENTRALIZAÇÃO DOS ELEMENTOS
========================================================= */

.entrada .painel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Nome da etapa e demais textos do painel */
.entrada .painel .subtitulo,
.entrada .painel .nome-etapa,
.entrada .painel .etapa {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-self: center;
}