/* Onglet Sujet & Tirage (et le flash des catégories secrètes) */

.controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

select {
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--text);
    outline: none;
    cursor: pointer;
}

select:focus { border-color: var(--blue); }

#spin-button {
    background-color: var(--action);
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
}

#spin-button:hover:not(:disabled) { background-color: var(--action-hover); }
#spin-button:disabled { background-color: var(--border-strong); }

.result-container {
    min-height: 120px;
    display: flex;
    align-items: center;
}

/* « Tous les sujets ont été tirés » : discret, sous le sujet */
.cycle-note {
    margin: -0.6rem 0 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cycle-note[hidden] { display: none; }

#result-box {
    padding: 1.5rem;
    border: 2px dashed var(--action-line);
    border-radius: var(--radius);
    width: 100%;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.spinning {
    filter: blur(2px);
    opacity: 0.6;
}

.roles-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.role-card {
    flex: 1;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem;
    text-align: center;
}

/* Nom d'équipe modifiable : ressemble à un libellé, souligné en pointillés pour inviter à cliquer */
.team-name-input {
    display: block;
    width: 100%;
    margin-bottom: 0.3rem;
    padding: 0.15rem;
    border: none;
    border-bottom: 1px dashed var(--border-strong);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-strong);
    text-align: center;
}

.team-name-input::placeholder { color: var(--text-muted); }

.clear-names {
    display: flex;
    justify-content: center;
    margin-top: 0.8rem;
}

.clear-names .btn { font-size: 0.8rem; padding: 0.45rem 0.9rem; }

/* Noms des débatteurs sous chaque équipe (repris dans la fiche de score) */
.debater-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
}

.debater-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.debater-row span {
    flex: 0 0 4.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
}

.debater-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-strong);
}

.debater-input:focus {
    outline: none;
    border-color: var(--blue);
}

.team-name-input:focus {
    outline: none;
    border-bottom: 1px solid var(--blue);
}

.role-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
}

/* Box de suggestions sous le tirage */
.suggest-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 2rem;
    padding: 1rem 1.2rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.9rem;
}

.screen-flash {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 99999;
    pointer-events: none;
    transition: opacity 0.6s ease-out;
}

.screen-flash.fade-out { opacity: 0; }

/* Téléphone */
@media (max-width: 768px) {
    /* Noms des débatteurs : libellé au-dessus du champ pour garder un champ assez large */
    .debater-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.1rem;
    }
    .debater-row span {
        flex: none;
        text-align: center;
    }
}
