/* ==================== BINGO MODE ==================== */

.bingo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 90vw;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.bingo-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 40px;
}

.bingo-team-stat {
    text-align: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    flex: 1;
}

.bingo-team-stat .team-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bingo-team-stat .team-score {
    font-size: 2rem;
    font-weight: 900;
    margin: 8px 0;
}

.bingo-team-stat .team-lines {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
    max-width: min(90vh, 90vw);
    aspect-ratio: 1;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.bingo-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.bingo-cell:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.bingo-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.cell-content {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 1;
    color: white !important;
}

/* États des cellules */
/* Les couleurs des équipes sont appliquées dynamiquement via classes CSS */

/* Cellules neutres (non capturées, non jokers) */
.bingo-cell.neutral {
    background: linear-gradient(135deg, #ffc107, #ffb300) !important;
    border-color: #ffb300 !important;
}

/* Équipe 1 / solo_0 - VERT */
.bingo-cell.owned-solo_0,
.bingo-cell.owned-1 {
    background: linear-gradient(135deg, #00e676, #00c853) !important;
    color: #fff !important;
    border-color: #00e676 !important;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5) !important;
}

/* Équipe 2 / solo_1 - BLEU */
.bingo-cell.owned-solo_1,
.bingo-cell.owned-2 {
    background: linear-gradient(135deg, #2979ff, #1565c0) !important;
    color: #fff !important;
    border-color: #2979ff !important;
    box-shadow: 0 0 20px rgba(41, 121, 255, 0.5) !important;
}

/* Joker (étoile) neutre - Fond jaune doré */
.bingo-cell.joker.neutral,
.bingo-cell.joker {
    background: linear-gradient(135deg, #ffc107, #ffb300) !important;
    color: #000 !important;
    border-color: #ffb300 !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5) !important;
}

.bingo-cell.blinking {
    animation: bingo-blink 0.6s ease-in-out infinite;
    border-color: #ff6b6b !important;
}

@keyframes bingo-blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.95);
        box-shadow: 0 0 40px rgba(255, 107, 107, 1);
    }
}

/* Joker styling */
.joker-icon {
    font-size: 3rem;
    animation: joker-glow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes joker-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
        transform: rotate(0deg);
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
        transform: rotate(15deg) scale(1.1);
    }
}

/* Animation de capture */
.bingo-cell.captured {
    animation: capture-pulse 0.6s ease-out;
}

@keyframes capture-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 40px currentColor;
    }

    100% {
        transform: scale(1);
    }
}