/* ==========================================================================
   MODULE FLIP 7 — CSS
   ========================================================================== */

.flip7-container { animation: fade-in 0.3s ease; }

.flip7-score-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}
.flip7-score-header {
    display: flex;
    background: var(--bg-tertiary);
}
.flip7-col-header {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    border-bottom: 3px solid transparent;
    font-size: 0.8rem;
}

/* Carte saisie de manche */
.flip7-round-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.flip7-round-card h4 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.flip7-round-helpers { margin-top: 1rem; }

/* Mode live */
.flip7-live-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.flip7-live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 900;
}
.btn-end-round {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Board joueur (mode live) */
.flip7-players-board { display: flex; flex-direction: column; gap: 0.75rem; }

.flip7-player-board {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    border: 2px solid transparent;
    transition: var(--transition);
}
.flip7-player-board.stopped { opacity: 0.7; }
.flip7-player-board.busted  { opacity: 0.45; }

.flip7-pb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.flip7-status-chip {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 700;
}
.flip7-status-chip.active { background: #10b98120; color: var(--success); }
.flip7-status-chip.stop   { background: #6366f120; color: var(--accent); }
.flip7-status-chip.bust   { background: #ef444420; color: var(--danger); }

.flip7-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
    min-height: 36px;
}
.flip7-card {
    width: 36px;
    height: 42px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--accent);
    animation: dice-pop 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
}
.flip7-card.flip7-bonus {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-color: #f59e0b;
    color: white;
}

.flip7-pb-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.flip7-actions {
    display: flex;
    gap: 0.4rem;
}
.btn-add-card, .btn-stop-player {
    background: var(--bg-secondary);
    border: 1.5px solid var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-stop-player { border-color: var(--accent); color: var(--accent); }
.btn-add-card:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* Picker numérique */
.flip7-card-picker {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--bg-tertiary);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.flip7-num-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}
.flip7-num-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--bg-tertiary);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}
.flip7-num-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.flip7-num-btn.has-card {
    background: #ef444415;
    border-color: var(--danger);
    color: var(--danger);
    cursor: not-allowed;
}
