* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f2f5f7;
    font-family: Arial, Helvetica, sans-serif;
    color: #1d1d1d;
}

.topo {
    background: linear-gradient(135deg, #005c2f, #0fa958);
    color: white;
    padding: 28px 20px;
    text-align: center;
}

.topo h1 {
    margin: 0;
    font-size: 34px;
}

.topo p {
    margin: 8px 0 0;
    font-size: 16px;
    opacity: 0.95;
}

.container {
    width: 95%;
    max-width: 1350px;
    margin: 28px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.coluna {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.titulo-coluna {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.titulo-coluna h2 {
    margin: 0;
    font-size: 22px;
}

.titulo-coluna span {
    background: #eef3f0;
    color: #005c2f;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.cabecalho-data {
    background: #005c2f;
    color: white;
    padding: 11px 14px;
    border-radius: 12px;
    margin: 20px 0 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cabecalho-data strong {
    font-size: 17px;
}

.cabecalho-data span {
    font-size: 13px;
    opacity: 0.95;
}

.card-jogo {
    background: #fafafa;
    border: 1px solid #e2e6e3;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.linha-topo {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
}

.grupo {
    font-weight: bold;
    color: #005c2f;
}

.cidade {
    color: #666;
    text-align: right;
}

.confronto {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.confronto span:first-child {
    text-align: right;
}

.confronto span:last-child {
    text-align: left;
}

.confronto strong {
    background: #111;
    color: white;
    padding: 7px 12px;
    border-radius: 8px;
}

.info-jogo {
    text-align: center;
    margin-top: 14px;
    color: #555;
    font-size: 14px;
}

.hora {
    background: #eef3f0;
    color: #005c2f;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.badge {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
}

.badge-agendado {
    background: #e8f1ff;
    color: #0b58b0;
}

.badge-finalizado {
    background: #fff4db;
    color: #946400;
}

.paginacao {
    text-align: center;
    margin-top: 16px;
}

.paginacao button {
    border: none;
    background: #0fa958;
    color: white;
    padding: 8px 12px;
    margin: 3px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.paginacao button.ativo {
    background: #005c2f;
}

.sem-jogos {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 12px;
    text-align: center;
    color: #666;
}

@media (max-width: 850px) {
    .container {
        grid-template-columns: 1fr;
    }

    .topo h1 {
        font-size: 26px;
    }

    .titulo-coluna {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .confronto {
        font-size: 15px;
        gap: 8px;
    }
}

.menu-topo {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.menu-topo a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    padding: 9px 14px;
    border-radius: 999px;
}

.menu-topo a:hover {
    background: rgba(255,255,255,0.28);
}

.badge-pendente {
    background: #fff4db;
    color: #946400;
}

.container-admin {
    width: 95%;
    max-width: 1000px;
    margin: 28px auto;
}

.card-login,
.painel-placares {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-login {
    max-width: 430px;
    margin: 0 auto;
}

.card-login h2 {
    margin-top: 0;
}

.card-login label,
.form-placar label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.card-login input,
.form-placar input {
    width: 100%;
    padding: 11px;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    margin-top: 6px;
    font-size: 16px;
}

.card-login button,
.form-placar button {
    border: none;
    background: #005c2f;
    color: white;
    padding: 11px 16px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.card-login button {
    width: 100%;
    margin-top: 14px;
}

.form-placar {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    align-items: end;
    gap: 12px;
}

.card-admin {
    background: #fff;
}

.btn-remover {
    text-decoration: none;
    background: #b42318;
    color: white;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.alerta {
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: bold;
}

.alerta.erro {
    background: #fde8e8;
    color: #9b1c1c;
}

.alerta.sucesso {
    background: #e7f7ed;
    color: #075e2c;
}

@media (max-width: 850px) {
    .topo {
        padding: 20px 14px;
    }

    .topo h1 {
        font-size: 24px;
    }

    .topo p {
        font-size: 14px;
    }

    .container-admin {
        width: 100%;
        padding: 0 10px 20px;
    }

    .card-login,
    .painel-placares {
        padding: 16px;
        border-radius: 14px;
    }

    .form-placar {
        grid-template-columns: 1fr;
    }

    .passos-cadastro {
        grid-template-columns: 1fr;
    }

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

    .cabecalho-lista-jogos {
        flex-direction: column;
    }

    .linha-palpite {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .inputs-palpite {
        grid-template-columns: 1fr auto 1fr;
        gap: 6px;
    }

    .inputs-palpite input {
        font-size: 18px;
    }
}

.card-topo-placar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.topo-jogo {
    margin-top: 4px;
    text-align: left;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.status-finalizado {
    background: #e7f7ed;
    color: #075e2c;
}

.status-pendente {
    background: #fff4db;
    color: #946400;
}

.form-placar-card {
    margin-top: 14px;
    background: #f8faf9;
    border: 1px solid #e6ece8;
    border-radius: 12px;
    padding: 12px;
}

.placar-entrada {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: end;
}

.placar-entrada label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.placar-entrada label span {
    font-size: 12px;
    font-weight: bold;
    color: #4b5563;
}

.separador-placar {
    font-size: 20px;
    font-weight: bold;
    color: #005c2f;
    padding-bottom: 10px;
    text-align: center;
}

.acoes-placar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.alerta {
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: bold;
}

.alerta.erro {
    background: #fde8e8;
    color: #9b1c1c;
}

.alerta.sucesso {
    background: #e7f7ed;
    color: #075e2c;
}

@media (max-width: 850px) {
    .topo {
        padding: 20px 14px;
    }

    .topo h1 {
        font-size: 24px;
    }

    .topo p {
        font-size: 14px;
    }

    .container-admin {
        width: 100%;
        padding: 0 10px 20px;
    }

    .card-login,
    .painel-placares {
        padding: 16px;
        border-radius: 14px;
    }

    .form-placar {
        grid-template-columns: 1fr;
    }

    .passos-cadastro {
        grid-template-columns: 1fr;
    }

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

    .cabecalho-lista-jogos {
        flex-direction: column;
    }

    .linha-palpite {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .inputs-palpite {
        grid-template-columns: 1fr auto 1fr;
        gap: 6px;
    }

    .inputs-palpite input {
        font-size: 18px;
        padding: 12px;
    }

    .acoes-form {
        flex-direction: column;
        align-items: stretch;
    }

    .acoes-form button,
    .btn-secundario {
        width: 100%;
        text-align: center;
    }

    .menu-topo {
        gap: 8px;
    }

    .menu-topo a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.container-admin.grande {
    max-width: 1350px;
}

.cabecalho-admin {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.cabecalho-admin h2 {
    margin: 0 0 6px;
}

.cabecalho-admin p {
    margin: 0;
    color: #555;
}

.btn-secundario {
    display: inline-block;
    background: #eef3f0;
    color: #005c2f;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 9px;
    font-weight: bold;
}

.passos-cadastro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.passo-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f4f8f5;
    border: 1px solid #dce9e1;
    border-radius: 12px;
    padding: 12px;
}

.passo-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #005c2f;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.passo-card strong {
    display: block;
    margin-bottom: 3px;
}

.passo-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.grid-importacao {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 22px;
    align-items: flex-start;
}

.box-foto,
.box-jogos {
    background: #fafafa;
    border: 1px solid #e2e6e3;
    border-radius: 14px;
    padding: 16px;
}

.cabecalho-lista-jogos {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.cabecalho-lista-jogos h3 {
    margin: 0 0 4px;
}

.badge-lista {
    background: #005c2f;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 999px;
}

.box-foto label,
.box-jogos label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-top: 12px;
}

.box-foto input[type="text"],
.box-foto input[type="file"] {
    width: 100%;
    padding: 11px;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    margin-top: 6px;
    background: white;
}

.texto-ajuda {
    color: #666;
    font-size: 13px;
}

.preview-foto {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: white;
}

.galeria-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.galeria-fotos a {
    display: block;
}

.foto-detalhe {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #ddd;
    background: white;
}

.cabecalho-data.menor {
    margin: 18px 0 8px;
    padding: 8px 12px;
    border-radius: 9px;
}

.grupo-dia-palpites {
    display: block;
}

.linha-palpite {
    display: grid;
    grid-template-columns: 1fr 145px;
    gap: 14px;
    align-items: center;
    background: white;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.paginacao-palpites {
    margin-top: 14px;
}

.paginacao-palpites button {
    border: none;
    background: #0fa958;
    color: white;
    padding: 8px 12px;
    margin: 3px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.paginacao-palpites button.ativo {
    background: #005c2f;
}

.info-palpite strong {
    display: block;
    margin: 5px 0;
}

.info-palpite small {
    color: #666;
}

.inputs-palpite {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 7px;
    align-items: center;
}

.inputs-palpite input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.acoes-form {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

.acoes-form button {
    border: none;
    background: #005c2f;
    color: white;
    padding: 12px 18px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: bold;
}

.lista-participantes {
    margin-top: 22px;
}

.tabela-responsiva {
    overflow-x: auto;
}

.tabela-ranking {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.tabela-ranking th,
.tabela-ranking td {
    border-bottom: 1px solid #e6e6e6;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.tabela-ranking th {
    background: #eef3f0;
    color: #005c2f;
    font-size: 13px;
}

.tabela-ranking a {
    color: #005c2f;
    font-weight: bold;
}

.tabela-ranking tr.lider {
    background: #fff8e5;
}

.tabela-ranking tr.acerto {
    background: #effaf2;
}

.tabela-ranking tr.erro {
    background: #fff1f1;
}

.acoes-tabela {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.acoes-tabela form {
    margin: 0;
}

.link-perigo {
    border: none;
    background: transparent;
    color: #b42318;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

@media (max-width: 950px) {
    .grid-importacao {
        grid-template-columns: 1fr;
    }

    .linha-palpite {
        grid-template-columns: 1fr;
    }

    .cabecalho-admin {
        flex-direction: column;
    }

    .tabela-ranking th,
    .tabela-ranking td {
        padding: 10px 8px;
        font-size: 13px;
    }
}


/* ===== Conferência ===== */

.card-conferencia.exato,
tr.exato {
    background: #e8f8ee;
    border-left: 5px solid #22c55e;
}

.card-conferencia.parcial,
tr.parcial {
    background: #fff7e6;
    border-left: 5px solid #f59e0b;
}

.card-conferencia.erro,
tr.erro {
    background: #fdecec;
    border-left: 5px solid #ef4444;
}

.card-conferencia.aguardando,
tr.aguardando {
    background: #eef4ff;
    border-left: 5px solid #3b82f6;
}

/* Badge dos pontos */

.badge-pontos-detalhe {
    color: #fff;
}

.card-conferencia.exato .badge-pontos-detalhe {
    background: #22c55e;
}

.card-conferencia.parcial .badge-pontos-detalhe {
    background: #f59e0b;
}

.card-conferencia.erro .badge-pontos-detalhe {
    background: #ef4444;
}

.card-conferencia.aguardando .badge-pontos-detalhe {
    background: #3b82f6;
}
/* ===== Ajustes para desktop =====
   Mantém o mobile como está. As regras abaixo só entram em telas grandes. */
@media (min-width: 1024px) {
    body {
        background: radial-gradient(circle at top, #eef8f1 0, #f2f5f7 360px, #edf2f5 100%) !important;
    }

    .topo {
        padding: 34px 32px 38px !important;
        box-shadow: 0 10px 30px rgba(0, 92, 47, 0.16) !important;
    }

    .topo h1 {
        font-size: 40px !important;
        letter-spacing: -0.8px !important;
    }

    .topo p {
        font-size: 17px !important;
    }

    .menu-topo {
        gap: 12px !important;
        margin-bottom: 24px !important;
    }

    .menu-topo a {
        padding: 11px 18px !important;
        min-height: 44px !important;
        transition: transform .15s ease, background .15s ease, box-shadow .15s ease !important;
    }

    .menu-topo a:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 8px 18px rgba(0,0,0,.12) !important;
    }

    .container {
        width: 94% !important;
        max-width: 900px !important;
        padding: 26px 0 38px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .abas-jogos {
        max-width: 780px !important;
        margin: 0 auto 24px !important;
        gap: 12px !important;
        padding: 12px !important;
        border-radius: 22px !important;
        background: rgba(255,255,255,.72) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
    }

    .aba-jogo {
        min-height: 66px !important;
        font-size: 1rem !important;
        border-radius: 18px !important;
    }

    .titulo-coluna {
        padding: 18px 22px !important;
        border-radius: 20px !important;
        margin-bottom: 20px !important;
    }

    .titulo-coluna h2 {
        font-size: 26px !important;
    }

    #lista-futuros,
    #lista-finalizados {
        display: block !important;
    }

    .grupo-dia,
    .item-finalizado-recente {
        margin-bottom: 18px !important;
    }

    .cabecalho-data {
        padding: 14px 16px !important;
        border-radius: 16px !important;
        margin-bottom: 12px !important;
    }

    .card-jogo {
        padding: 18px !important;
        border-radius: 18px !important;
        margin-bottom: 12px !important;
        transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
    }

    .card-jogo:hover {
        transform: translateY(-2px) !important;
        border-color: #c8dbd0 !important;
        box-shadow: 0 12px 28px rgba(0,0,0,.09) !important;
    }

    .confronto {
        font-size: 19px !important;
        gap: 14px !important;
    }

    .placar {
        min-width: 64px !important;
        padding: 8px 14px !important;
    }

    .rodape-jogo,
    .info-jogo {
        margin-top: 16px !important;
    }

    .paginacao {
        margin-top: 26px !important;
    }

    .paginacao button,
    .paginacao-palpites button {
        min-width: 44px !important;
        min-height: 42px !important;
        border-radius: 12px !important;
    }

    .ranking-box {
        min-height: 780px !important;
        border-radius: 22px !important;
    }

    .ranking-box iframe {
        height: 820px !important;
    }

    .container-admin {
        width: 94% !important;
        max-width: 1120px !important;
        margin: 34px auto 46px !important;
    }

    .container-admin.grande {
        max-width: 1360px !important;
    }

    .card-login,
    .painel-placares {
        padding: 28px !important;
        border-radius: 22px !important;
    }

    .card-login {
        max-width: 460px !important;
        margin-top: 18px !important;
    }

    .cabecalho-admin {
        align-items: center !important;
        margin-bottom: 24px !important;
    }

    .cabecalho-admin h2,
    .painel-placares h2 {
        font-size: 26px !important;
    }

    .passos-cadastro {
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    .passo-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .grid-importacao {
        grid-template-columns: 380px minmax(0, 1fr) !important;
        gap: 26px !important;
    }

    .box-foto,
    .box-jogos {
        padding: 20px !important;
        border-radius: 18px !important;
    }

    .linha-palpite {
        grid-template-columns: minmax(0, 1fr) 170px !important;
        padding: 14px 16px !important;
        border-radius: 14px !important;
    }

    .inputs-palpite input,
    .card-login input,
    .form-placar input,
    .box-foto input[type="text"],
    .box-foto input[type="file"] {
        min-height: 44px !important;
    }

    .form-placar {
        grid-template-columns: minmax(180px,1fr) 130px auto auto !important;
        gap: 14px !important;
    }

    .placar-entrada {
        grid-template-columns: minmax(0,1fr) 70px minmax(0,1fr) !important;
        gap: 14px !important;
    }

    .acoes-form,
    .acoes-placar,
    .acoes-confrontos {
        gap: 12px !important;
    }

    .tabela-responsiva {
        border-radius: 18px !important;
        box-shadow: 0 6px 18px rgba(0,0,0,.05) !important;
    }

    .tabela-ranking th,
    .tabela-ranking td {
        padding: 14px 16px !important;
    }

    .galeria-fotos {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
        gap: 18px !important;
    }

    .foto-detalhe {
        max-height: 780px !important;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 900px !important;
    }

    #lista-futuros,
    #lista-finalizados {
        display: block !important;
    }
}
