/*
 * Sorteio de equipes — sorteio-de-equipes.php.
 * Usa gerador.css e sorteio.css; aqui ficam o modo de divisão e os cartões das equipes.
 */

/* Modo de divisão */
.team-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    background: #eef3f8;
}

.team-mode label {
    margin: 0;
    cursor: pointer;
}

.team-mode input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.team-mode span {
    display: block;
    padding: 10px 8px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: background-color .15s ease, color .15s ease;
}

.team-mode input:checked + span {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 2px 6px rgba(10, 60, 110, .12);
}

.team-mode input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(10, 127, 209, .3);
}

.team-amount {
    max-width: 300px;
    margin: 14px auto 0;
    text-align: center;
}

/* Equipes */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.team-card {
    --team: #0a7fd1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 4px solid var(--team);
    border-radius: 14px;
    background: #fff;
    animation: draw-pop .3s ease both;
}

.team-card--1 { --team: #ff6b4a; }
.team-card--2 { --team: #16a34a; }
.team-card--3 { --team: #9333ea; }
.team-card--4 { --team: #eab308; }
.team-card--5 { --team: #0891b2; }
.team-card--6 { --team: #db2777; }
.team-card--7 { --team: #475569; }

.team-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 12px 14px 8px;
}

.team-card h3 {
    margin: 0;
    color: var(--team);
    font-size: 17px;
}

.team-card__head span {
    color: var(--ink-soft);
    font-size: 12px;
    white-space: nowrap;
}

.team-card ol {
    margin: 0;
    padding: 0 14px 12px 34px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.7;
}

.team-card li small {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #eef3f8;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.team-card li.is-seed {
    font-weight: 800;
}

.team-card li.is-seed::after {
    content: ' ★';
    color: var(--team);
}

@media (max-width: 640px) {
    .team-mode span {
        font-size: 13px;
    }
}
