* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #0f1f14;
    color: #222;
}
.topo {
    background: #0a7d34;
    color: #fff;
    padding: 14px 20px;
}
.topo-conteudo {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.logo {
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    text-decoration: none;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 14px;
    font-size: 0.95em;
}
nav a:hover { text-decoration: underline; }
.ola { margin-left: 14px; opacity: 0.9; }

.conteudo {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px 60px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

h1, h2, h3 { margin-top: 0; }

.jogo-titulo {
    font-size: 1.3em;
    font-weight: bold;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}
.tag-aberto { background: #d7f7de; color: #0a7d34; }
.tag-encerrado { background: #f7d7d7; color: #a30000; }
.tag-pendente { background: #fff3cd; color: #8a6400; }
.tag-confirmado { background: #d7f7de; color: #0a7d34; }

form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 0.9em;
}
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}
.linha {
    display: flex;
    gap: 12px;
}
.linha > div { flex: 1; }

button, .botao {
    display: inline-block;
    background: #0a7d34;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    margin-top: 16px;
}
button:hover, .botao:hover { background: #086129; }
.botao-secundario { background: #555; }
.botao-secundario:hover { background: #333; }
.botao-perigo { background: #a30000; }
.botao-perigo:hover { background: #7a0000; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th, td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}
th { color: #555; }

.alerta {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.alerta-erro { background: #fdeaea; color: #a30000; border: 1px solid #f2b8b8; }
.alerta-sucesso { background: #e7f9ec; color: #0a7d34; border: 1px solid #b7e6c4; }
.alerta-info { background: #eaf3fd; color: #0a4d8f; border: 1px solid #b8d4f2; }

.pix-box {
    background: #f4f4f4;
    border: 1px dashed #999;
    border-radius: 8px;
    padding: 14px;
    font-family: monospace;
    font-size: 1.05em;
    word-break: break-all;
}

.rodape {
    text-align: center;
    color: #cfe8d8;
    padding: 20px;
    font-size: 0.85em;
}

.destaque-ganhador {
    background: #fff8e1;
    font-weight: bold;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-caixa {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.modal-texto {
    white-space: pre-line;
    line-height: 1.5;
    color: #333;
    margin: 14px 0 4px;
}

.modal-caixa button {
    width: 100%;
}
