* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Arial Black', Arial, sans-serif;
            background: url('../autres/bg.jpeg') center/cover fixed;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow-x: hidden;
            color: white;
        }
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 0;
        }
        .container {
            position: relative;
            z-index: 1;
            text-align: center;
            padding: 2rem;
            max-width: 1200px;
            width: 100%;
            justify-content: center;
        }


        .logo-container {
            margin-top: -1.5rem;
            margin-bottom: 1.2rem;
            perspective: 1000px;
        }
        .logo {
            max-width: 380px;
            width: 60%;
            height: auto;
            filter: drop-shadow(0 10px 30px rgba(255, 20, 147, 0.6));
        }
        .logo:hover {
            transform: scale(1.03);
        }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
        }
        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(50px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        @keyframes shine {
            0% { left: -100%; }
            50%, 100% { left: 100%; }
        }
        .menu-container {
            display: flex;
            flex-direction: column;
            gap: 0.9rem;
            margin-top: 1.2rem;
            animation: fadeInUp 1s ease-out 0.3s both;
            max-width: 520px;
            margin-left: auto;
            margin-right: auto;
        }
        .game-button {
            position: relative;
            padding: 0.9rem 2rem;
            font-size: 1.15rem;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 2px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            overflow: hidden;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
            color: white;
            font-family: 'Arial Black', Arial, sans-serif;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .game-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }
        .game-button:hover::before {
            left: 100%;
        }
        .classique-btn {
            background: linear-gradient(135deg, #FF1493 0%, #8B008B 100%);
            box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5),
                        inset 0 -3px 10px rgba(0, 0, 0, 0.3);
            border: 4px solid #FFD700;
        }
        .classique-btn:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 12px 35px rgba(255, 20, 147, 0.7),
                        inset 0 -3px 10px rgba(0, 0, 0, 0.3);
        }
        .classique-btn:active {
            transform: translateY(-2px) scale(0.98);
        }
        .stand-btn {
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5),
                        inset 0 -3px 10px rgba(0, 0, 0, 0.3);
            border: 4px solid #FF1493;
        }
        .stand-btn:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 12px 35px rgba(255, 215, 0, 0.7),
                        inset 0 -3px 10px rgba(0, 0, 0, 0.3);
        }
        .stand-btn:active {
            transform: translateY(-2px) scale(0.98);
        }

        .ost-btn {
            background: linear-gradient(135deg, #00E5FF 0%, #0033FF 100%);
            box-shadow: 0 8px 30px rgba(0, 229, 255, 0.6),
                        inset 0 -3px 12px rgba(0, 0, 0, 0.4),
                        0 0 10px #00E5FF;
            border: 4px solid #FFD700;
            color: #FFFFFF;
        }
        .ost-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 12px 45px rgba(0, 229, 255, 0.85),
                        inset 0 -3px 12px rgba(0, 0, 0, 0.4),
                        0 0 15px #00E5FF;
        }
        .ost-btn:active {
            transform: translateY(-2px) scale(0.97);
        }


        .citation-btn {
            background: linear-gradient(135deg, #8A00FF 0%, #FF00D4 100%);
            box-shadow: 0 8px 30px rgba(138, 0, 255, 0.6),
                        inset 0 -3px 12px rgba(0, 0, 0, 0.4),
                        0 0 12px #FF00D4;
            border: 4px solid #FFD700;
            color: #FFFFFF;
        }
        .citation-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 12px 45px rgba(138, 0, 255, 0.85),
                        inset 0 -3px 12px rgba(0, 0, 0, 0.4),
                        0 0 18px #FF00D4;
        }
        .citation-btn:active {
            transform: translateY(-2px) scale(0.97);
        }


        .button-subtitle {
            display: block;
            font-size: 0.75rem;
            font-weight: normal;
            letter-spacing: 1px;
            margin-top: 0.3rem;
            opacity: 0.9;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
        }
        .game-mode {
            display: none;
        }
        .game-mode.active {
            display: block;
        }
        .mode-logo {
            max-width: 380px;
            width: 50%;
            height: auto;
            filter: drop-shadow(0 6px 18px rgba(255, 20, 147, 0.5));
            margin: -3rem auto 0.5rem auto;
            display: block;
        }
        .sparkle {
            position: fixed;
            width: 3px;
            height: 3px;
            background: white;
            border-radius: 50%;
            pointer-events: none;
            animation: sparkleAnim 3s ease-in-out infinite;
        }
        @keyframes sparkleAnim {
            0%, 100% { opacity: 0; transform: scale(0); }
            50% { opacity: 1; transform: scale(1); }
        }

    



        @media (max-width: 768px) {
            .logo { max-width: 320px; }
            .game-button { 
                padding: 1.5rem 2rem; 
                font-size: 1.6rem;
                letter-spacing: 2px;
            }
            .button-subtitle { font-size: 0.85rem; }
            .game-button::after { display: none; }
        }

        /* ===== STYLES GÉNÉRAUX DU MODE JEU ===== */
.game-mode {
    display: none;
    animation: fadeInUp 0.5s ease-out;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-mode.active {
    display: block;
}

/* ===== HEADER DU JEU ===== */
.game-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.game-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 
        3px 3px 0 #FF1493,
        -1px -1px 0 #8B008B,
        1px -1px 0 #8B008B,
        -1px 1px 0 #8B008B,
        1px 1px 0 #8B008B,
        0 0 20px rgba(255, 215, 0, 0.8);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* ===== BARRE DE RECHERCHE ===== */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 1rem auto;
    animation: fadeInUp 0.7s ease-out;
    z-index: 10; /* AUGMENTÉ pour être au-dessus du menu */
}

#searchInputClassique {
    width: 100%;
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 4px solid #FFD700;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #8B008B;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4),
                inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

#searchInputClassique:focus {
    border-color: #FF1493;
    box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6),
                inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#searchInputClassique::placeholder {
    color: rgba(139, 0, 139, 0.5);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF1493 0%, #8B008B 100%);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.5);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.7);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* ===== SUGGESTIONS MODERNISÉES ===== */
.suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 255, 0.98));
    border: 4px solid #FFD700;
    border-radius: 15px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: none;
    backdrop-filter: blur(10px);
}

.suggestions.show {
    display: block;
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid rgba(255, 215, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FF1493, #FFD700);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 20, 147, 0.15) 50%,
        rgba(139, 0, 139, 0.1) 100%);
    transform: translateX(8px);
    padding-left: 1.5rem;
}

.suggestion-item:hover::before {
    transform: scaleY(1);
}

.suggestion-item:active {
    transform: translateX(8px) scale(0.98);
}

.player-photo {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #FF1493, #FFD700) border-box;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.suggestion-item:hover .player-photo {
    transform: scale(1.08);
    box-shadow: 
        0 5px 15px rgba(255, 20, 147, 0.3),
        0 0 0 3px rgba(255, 215, 0, 0.4);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-size: 1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8B008B, #FF1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.player-details {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.player-details::before {
    content: '⭐';
    font-size: 0.75rem;
    opacity: 0.7;
}

.no-results {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #8B008B;
    font-size: 1rem;
    font-weight: bold;
}

.no-results::before {
    content: '🔍';
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.5;
}

/* ===== SCROLLBAR PERSONNALISÉE POUR SUGGESTIONS ===== */
.suggestions::-webkit-scrollbar {
    width: 12px;
}

.suggestions::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    margin: 8px;
}

.suggestions::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF1493, #FFD700);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.suggestions::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD700, #FF1493);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    .suggestions {
        border-radius: 12px;
        max-height: 280px;
    }

    .suggestion-item {
        padding: 0.6rem 0.9rem;
    }

    .suggestion-item:hover {
        padding-left: 1.3rem;
    }

    .player-photo {
        width: 40px;
        height: 40px;
        margin-right: 0.9rem;
    }

    .player-name {
        font-size: 0.95rem;
    }

    .player-details {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .suggestion-item {
        padding: 0.55rem 0.8rem;
    }

    .player-photo {
        width: 38px;
        height: 38px;
    }

    .player-name {
        font-size: 0.9rem;
    }

    .player-details {
        font-size: 0.75rem;
    }
}

/* ===== SUPPORT TACTILE ===== */
@media (hover: none) and (pointer: coarse) {
    .suggestion-item:hover {
        background: transparent;
        transform: none;
        padding-left: 1.5rem;
    }

    .suggestion-item:active {
        background: linear-gradient(90deg, 
            rgba(255, 215, 0, 0.3) 0%, 
            rgba(255, 20, 147, 0.2) 100%);
        transform: scale(0.98);
    }

    .suggestion-item:hover .player-photo {
        transform: none;
    }

    .suggestion-item:active .player-photo {
        transform: scale(0.95);
    }
}

/* ===== BOUTONS D'INDICES - STYLE CLASSIQUE AMÉLIORÉ ===== */

/* Conteneur principal */
.hint-buttons-container {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin: 2rem auto 3rem auto;
    flex-wrap: wrap;
    max-width: 900px;
    padding: 0 1rem;
}

/* Bouton de base */
.hint-button {
    position: relative;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(139, 0, 139, 0.9), rgba(75, 0, 130, 0.9));
    border: 3px solid #FFD700;
    border-radius: 15px;
    cursor: not-allowed;
    transition: all 0.3s ease;
    min-width: 200px;
    min-height: 200px;
    max-height: 200px;
    max-width: 200px;
    text-align: center;
    display: none;
    transform: scale(0.8);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

/* État visible */
.hint-button.visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
}

/* Animation de première révélation */
.hint-button.visible.first-reveal {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { 
        transform: scale(0.3); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.05); 
    }
    70% { 
        transform: scale(0.95); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* État déverrouillé */
.hint-button.unlocked {
    cursor: pointer;
    background: linear-gradient(135deg, #FF1493, #FFD700);
    border-color: #FFD700;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

/* Survol déverrouillé */
.hint-button.unlocked:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(255, 215, 0, 0.7),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.hint-button.unlocked:active {
    transform: translateY(-3px) scale(1.02);
}

/* État actif (révélé) */
.hint-button.active {
    background: linear-gradient(135deg, #00FF00, #00CC00);
    border-color: #FFFFFF;
    box-shadow: 
        0 10px 30px rgba(0, 255, 0, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* ===== ICÔNE ===== */
.hint-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* ===== LABEL ===== */
.hint-label {
    font-size: 0.95rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== CADENAS ===== */
.hint-lock {
    margin-top: 0.5rem;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ===== TEXTE DE DÉVERROUILLAGE ===== */
.hint-unlock-text {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.4rem;
    font-weight: 600;
}

/* ===== VALEUR RÉVÉLÉE ===== */
.hint-value {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hint-value.revealed {
    max-height: 200px;
    max-width: 200px;
    margin-top: 0.6rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

.hint-value-long.revealed {
    max-height: 150px;
}

/* Quand le bouton est actif (indice révélé), l'icône et le label se rétrécissent */
.hint-button.active .hint-icon,
.hint-button.active .hint-label,
.hint-button.active .hint-lock,
.hint-button.active .hint-unlock-text {
    transform: scale(0.7);
    opacity: 0.8;
    transition: all 0.3s ease;
    margin: 0;
    max-height: 20px;
}


/* ===== SCROLLBAR PERSONNALISÉE ===== */
.hint-value::-webkit-scrollbar {
    width: 6px;
}

.hint-value::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 3px;
}

.hint-value::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 3px;
}

.hint-value::-webkit-scrollbar-thumb:hover {
    background: #FF1493;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    .hint-buttons-container {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .hint-button {
        min-width: 160px;
        min-height: 160px;
        max-height: 160px;
        max-width: 160px;
        padding: 1rem;
    }

    .hint-icon {
        font-size: 2rem;
    }

    .hint-label {
        font-size: 0.85rem;
    }

    .hint-lock {
        font-size: 1.5rem;
    }

    .hint-unlock-text {
        font-size: 0.7rem;
    }

    .hint-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hint-button {
        min-width: 140px;
        min-height: 140px;
        max-height: 140px;
        max-width: 140px;
    }

    .hint-icon {
        font-size: 1.8rem;
    }

    .hint-label {
        font-size: 0.8rem;
    }

    .hint-value {
        font-size: 0.85rem;
    }
}

/* ===== SUPPORT TACTILE ===== */
@media (hover: none) and (pointer: coarse) {
    .hint-button.unlocked:hover {
        transform: scale(1);
    }

    .hint-button.unlocked:active {
        transform: scale(0.95);
    }
}

/* ===== ZONE D'AFFICHAGE DES PERSONNAGES ===== */

#selectedPersonnagesClassique {
    margin: 2rem auto;
    max-width: 100%;
}

.player-categories{
    margin-top: 1rem;
    gap: 5px; /* un peu d'espace entre les catégories */
}

.selected-players {
    width: 100%;
    max-width: 650px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px; /* un peu d'espace entre les lignes */
    padding: 0 10px;
    font-family: 'Arial Black', Arial, sans-serif;
}

.selected-player.new-player {
    animation: slideInLeft 0.5s ease-out, pulse 2s ease-in-out;
}


.category-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 4px;
}

.categories-header {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 6px;
    margin-bottom: 3px;
    align-items: end;
    width: 100%;
}

.categories-header,
.player-categories {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    text-align: center;
    width: 100%;
    gap: 6px;
}

.category-header-item {
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
    hyphens: auto;
    /* Contour noir style manga */
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
    font-family: 'Arial Black', Impact, sans-serif;
}

/* Barre décorative sous chaque en-tête — trait gras manga */
.category-header-item::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    margin: 6px auto 0;
    border-radius: 0;
    box-shadow: 0 1px 0 #000;
}

/* Ajustement dynamique de la taille selon la longueur */
.category-header-item[data-length="1"],
.category-header-item[data-length="2"],
.category-header-item[data-length="3"],
.category-header-item[data-length="4"],
.category-header-item[data-length="5"],
.category-header-item[data-length="6"] {
    font-size: 11px;
}

.category-header-item[data-length="7"],
.category-header-item[data-length="8"] {
    font-size: 10px;
}

.category-header-item[data-length="9"],
.category-header-item[data-length="10"],
.category-header-item[data-length="11"] {
    font-size: 9px;
}

.category-header-item[data-length="12"],
.category-header-item[data-length="13"],
.category-header-item[data-length="14"],
.category-header-item[data-length="15"] {
    font-size: 8.5px;
    letter-spacing: 0.2px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100px;
    /* Default state: dark panel JoJo style */
    background: linear-gradient(160deg, #1a0030 0%, #0d001a 100%);
    border-radius: 4px;
    border: 3px solid #111;
    box-shadow:
        4px 4px 0px #000,
        inset 0 1px 0 rgba(255,215,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    /* Clip-path: coin taillé bas-droite style manga */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

/* Ligne décorative en haut style speed lines manga */
.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,215,0,0.4) 40%, rgba(255,215,0,0.8) 50%, rgba(255,215,0,0.4) 60%, transparent 100%);
    z-index: 2;
}

/* Effet halftone en fond */
.category::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 6px 6px;
    pointer-events: none;
    z-index: 0;
}

.category:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

/* CORRECT : vert manga avec bordure noire épaisse */
.category.correct {
    background: linear-gradient(160deg, #0d5c2e 0%, #052e16 100%);
    border: 3px solid #000;
    box-shadow:
        4px 4px 0px #000,
        inset 0 0 20px rgba(0,255,80,0.08);
}
.category.correct::before {
    background: linear-gradient(90deg, transparent, #00e054, transparent);
}

/* INCORRECT : rouge manga percutant */
.category.incorrect {
    background: linear-gradient(160deg, #7a0000 0%, #3d0000 100%);
    border: 3px solid #000;
    box-shadow:
        4px 4px 0px #000,
        inset 0 0 20px rgba(255,0,0,0.1);
}
.category.incorrect::before {
    background: linear-gradient(90deg, transparent, #ff2020, transparent);
}

/* PARTIAL : orange */
.category.partial {
    background: linear-gradient(160deg, #7a3d00 0%, #3d1e00 100%);
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}
.category.partial::before {
    background: linear-gradient(90deg, transparent, #ff8c00, transparent);
}

@keyframes correctPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.08); 
        box-shadow: 0 0 25px #00FF00;
    }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px) rotate(-1deg); }
    40% { transform: translateX(8px) rotate(1deg); }
    60% { transform: translateX(-8px) rotate(-1deg); }
    80% { transform: translateX(8px) rotate(1deg); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.selected-player {
    animation: slideInLeft 0.5s ease-out;
}

.selected-player.new-player .category {
    opacity: 0;
    animation: categoryReveal 0.4s ease-out forwards;
}

.selected-player.new-player .category:nth-child(1) { animation-delay: 0s; }
.selected-player.new-player .category:nth-child(2) { animation-delay: 0.3s; }
.selected-player.new-player .category:nth-child(3) { animation-delay: 0.6s; }
.selected-player.new-player .category:nth-child(4) { animation-delay: 0.9s; }
.selected-player.new-player .category:nth-child(5) { animation-delay: 1.2s; }
.selected-player.new-player .category:nth-child(6) { animation-delay: 1.5s; }
.selected-player.new-player .category:nth-child(7) { animation-delay: 1.8s; }
.selected-player.new-player .category:nth-child(8) { animation-delay: 2.1s; }
.selected-player.new-player .category:nth-child(9) { animation-delay: 2.4s; }
.selected-player.new-player .category:nth-child(10) { animation-delay: 2.7s; }
.selected-player.new-player .category:nth-child(10) { animation-delay: 2.7s; }

@keyframes categoryReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    60% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Flash manga au moment de la révélation */
@keyframes mangaFlash {
    0%   { filter: brightness(1); }
    20%  { filter: brightness(3) saturate(0); }
    40%  { filter: brightness(1.5); }
    60%  { filter: brightness(2) saturate(0); }
    100% { filter: brightness(1); }
}

.selected-player.new-player .category {
    animation: categoryReveal 0.4s ease-out forwards, mangaFlash 0.5s ease-out forwards;
}

.player-main-photo {
    width: 100px;  /* adapte à la taille de la case */
    height: 100px; /* adapte à la taille de la case */
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    border-radius: 4px; /* optionnel pour uniformité */
}

.player-name-main {
    position: absolute;
    bottom: 4px;
    left: 2px;
    right: 2px;
    opacity: 0;
    transform: scale(1) !important;
    transform-origin: center bottom;
    transition: opacity 0.25s ease;
    z-index: 10;
    background: rgba(139, 0, 139, 0.95); 
    backdrop-filter: blur(8px);
    border-radius: 4px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    font-size: 0.65rem !important;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    will-change: opacity;
    padding: 3px 5px;
}

.category:hover .player-name-main,
.category:focus-within .player-name-main {
    opacity: 1;
}


/* Pour mobile : toujours visible mais plus transparent */
@media (hover: none) and (pointer: coarse) {
    .player-name-main {
        opacity: 0.85 !important;
        font-size: 0.5rem !important;
    }
}

.category-value {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    word-break: break-word;
    hyphens: auto;
    line-height: 1.2;
    max-width: 100%;
    padding: 0 0.2rem;
    position: relative;
    z-index: 1;
    /* Ajustement automatique selon longueur */
    font-size: clamp(0.65rem, calc(1rem - (var(--text-length, 0) * 0.02rem)), 1.1rem);
}


.arrow-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.arrow-indicator.arrow-up {
    background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.25), transparent 60%),
                linear-gradient(145deg, #22e86b, #0aab44);
    box-shadow:
        0 0 10px rgba(34, 232, 107, 0.9),
        0 0 20px rgba(34, 232, 107, 0.5),
        inset 0 1px 2px rgba(255,255,255,0.4),
        inset 0 -2px 4px rgba(0,0,0,0.3);
    animation: arrowPulseUp 1.4s ease-in-out infinite;
}

.arrow-indicator.arrow-down {
    background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.25), transparent 60%),
                linear-gradient(145deg, #ff5f5f, #cc0000);
    box-shadow:
        0 0 10px rgba(255, 60, 60, 0.9),
        0 0 20px rgba(255, 60, 60, 0.5),
        inset 0 1px 2px rgba(255,255,255,0.4),
        inset 0 -2px 4px rgba(0,0,0,0.3);
    animation: arrowPulseDown 1.4s ease-in-out infinite;
}

.arrow-indicator svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

@keyframes arrowPulseUp {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 10px rgba(34,232,107,0.9), 0 0 20px rgba(34,232,107,0.5), inset 0 1px 2px rgba(255,255,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.3); }
    50% { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(34,232,107,1), 0 0 28px rgba(34,232,107,0.7), inset 0 1px 2px rgba(255,255,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.3); }
}

@keyframes arrowPulseDown {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 10px rgba(255,60,60,0.9), 0 0 20px rgba(255,60,60,0.5), inset 0 1px 2px rgba(255,255,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.3); }
    50% { transform: translateY(3px); box-shadow: 0 -4px 16px rgba(255,60,60,1), 0 0 28px rgba(255,60,60,0.7), inset 0 1px 2px rgba(255,255,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.3); }
}

/* ===== VICTORY BOX ===== */
/* ===== LOGO CLIQUABLE ===== */
.logo-home-btn {
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.logo-home-btn:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 28px rgba(255, 20, 147, 0.85));
}

/* ===== VICTORY BOX ===== */
.victory-container {
    margin: 3rem auto;
    animation: victoryReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: scale(0.3) rotate(-5deg);
    max-width: 520px;
    width: 95%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

@keyframes victoryReveal {
    0% { opacity: 0; transform: scale(0.3) rotate(-5deg); }
    50% { transform: scale(1.05) rotate(1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.box {
    background: linear-gradient(160deg, #FFD700 0%, #FFA500 100%);
    border: 4px solid #FF1493;
    border-radius: 22px;
    padding: 2.2rem 1.5rem 1.8rem;
    box-shadow: 0 12px 50px rgba(0,0,0,0.55), 0 0 0 2px rgba(255,215,0,0.3);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.box::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 130px; height: 130px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.victory-title {
    font-size: 2rem;
    color: #5a0057;
    text-align: center;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.4);
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 2px;
}

.victory-content {
    text-align: center;
}

.victory-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FF1493;
    margin-bottom: 1rem;
    box-shadow: 0 6px 22px rgba(0,0,0,0.45);
    animation: float 3s ease-in-out infinite;
}

.victory-name-tag {
    display: inline-block;
    background: rgba(139, 0, 139, 0.15);
    border-radius: 20px;
    padding: 0.2rem 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: #7a007a;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.victory-text {
    font-size: 1.15rem;
    color: #5a0057;
    font-weight: bold;
    margin-bottom: 1.4rem;
    line-height: 1.4;
}

.victory-text strong {
    color: #FF1493;
    font-size: 1.35rem;
    display: block;
    margin-top: 0.2rem;
}

.victory-stats {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(139, 0, 139, 0.15);
    border-radius: 12px;
    border: 2px solid rgba(255, 20, 147, 0.5);
}

.stat-label {
    font-weight: bold;
    color: #5a0057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #FF1493;
}

/* ===== BOUTON MODE SUIVANT ===== */
.next-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #8B008B, #4B0082);
    color: white;
    border: 3px solid #FFD700;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    font-family: inherit;
    letter-spacing: 1px;
    transition: all 0.25s ease;
    box-shadow: 0 5px 18px rgba(139, 0, 139, 0.45);
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.next-mode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(139, 0, 139, 0.65);
    background: linear-gradient(135deg, #FF1493, #8B008B);
}

.next-mode-btn .next-mode-icon {
    font-size: 1.1rem;
}

.next-mode-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 12px;
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
    margin-left: 4px;
    vertical-align: middle;
}

/* ===== BOUTON RETOUR ===== */
.back-btn {
    display: block;
    margin: 3rem auto;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8B008B, #4B0082);
    color: white;
    border: 3px solid #FFD700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 0, 139, 0.4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 0, 139, 0.6);
    background: linear-gradient(135deg, #FF1493, #FFD700);
}

.back-btn:active {
    transform: translateY(-1px);
}

/* ===== VICTORY BOX MOBILE ===== */
@media (max-width: 480px) {
    .victory-container {
        width: 99%;
        padding: 0 0.1rem;
        margin: 1rem auto;
    }

    .box {
        padding: 1.4rem 0.9rem 1.2rem;
        border-radius: 16px;
    }

    .victory-title {
        font-size: 1.5rem;
        margin-bottom: 0.7rem;
    }

    .victory-photo {
        width: 85px;
        height: 85px;
    }

    .victory-text {
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
    }

    .victory-text strong {
        font-size: 1.15rem;
    }

    /* Stats en grille 2 colonnes */
    .victory-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        margin-bottom: 1rem;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem 0.4rem;
        gap: 0.2rem;
    }

    .stat-label {
        font-size: 0.72rem;
        text-align: center;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .next-mode-btn {
        font-size: 0.88rem;
        padding: 0.75rem 0.8rem;
    }
}

/* ===== CARROUSEL MOBILE (< 768px) ===== */
@media (max-width: 768px) {
    #selectedPersonnagesClassique {
        max-width: 100%;
        margin: 2rem 0;
        padding: 0;
    }

    .carousel-wrapper {
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .carousel-scroll-hint {
        text-align: center;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.75rem;
        padding: 0.5rem;
        background: rgba(139, 0, 139, 0.3);
        border-radius: 8px;
        margin-bottom: 0.5rem;
        animation: pulse 2s ease-in-out infinite;
    }

    .carousel-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .carousel-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .carousel-track {
        display: inline-flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        min-width: 100%;
    }

    /* Headers */
    .categories-header {
        display: grid;
        grid-template-columns: repeat(10, 120px);
        gap: 0.3rem;
        margin-bottom: 0.5rem;
        width: fit-content;
        min-width: 100%;
    }

    .category-header-item {
        width: 120px;
        height: 54px;
        font-size: 0.68rem;
        padding: 0.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        text-align: center;
        color: #ffffff;
        font-weight: bold;
        text-transform: uppercase;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.2;
    }

    .category-header-item::after {
        content: '';
        display: block;
        width: 50%;
        height: 2px;
        background-color: #ffffff;
        margin: 0.25rem auto 0;
        border-radius: 1px;
    }

    /* Player categories */
    .player-categories {
        display: grid;
        grid-template-columns: repeat(10, 120px);
        gap: 0.3rem;
        width: fit-content;
        min-width: 100%;
        animation: slideInLeft 0.5s ease-out;
    }

    .player-categories.new-player {
        animation: slideInLeft 0.5s ease-out, pulse 2s ease-in-out;
    }

    .category {
        width: 120px;
        height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: rgba(139, 0, 139, 0.3);
        border-radius: 8px;
        border: 2px solid rgba(255, 215, 0, 0.3);
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .category.correct {
        background: linear-gradient(135deg, #069B4E, #016901);
        border-color: #069B4E;
    }

    .category.incorrect {
        background: linear-gradient(135deg, #B93F44, #CC0000);
        border-color: #B93F44;
    }

    .category.partial {
        background: linear-gradient(135deg, #CC7700, #994400);
        border-color: #CC7700;
    }

    .category-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .player-main-photo {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .player-name-main {
        position: absolute;
        bottom: 4px;
        left: 4px;
        right: 4px;
        background: rgba(139, 0, 139, 0.95);
        backdrop-filter: blur(8px);
        border-radius: 4px;
        padding: 0.25rem;
        border: 1px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        font-size: 0.65rem;
        font-weight: 600;
        color: #ffffff;
        text-align: center;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        opacity: 0.9;
    }

    .category-value {
        font-size: 0.78rem;
        font-weight: bold;
        color: white;
        text-align: center;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        word-break: break-word;
        hyphens: auto;
        line-height: 1.2;
        max-width: 115px;
        padding: 0 0.25rem;
    }

    .arrow-indicator {
        width: 24px;
        height: 24px;
        margin-bottom: 0.2rem;
    }

    .arrow-indicator svg {
        width: 14px;
        height: 14px;
    }

    /* Scrollbar personnalisée */
    .carousel-scrollbar {
        width: 100%;
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        margin-top: 0.5rem;
        position: relative;
        overflow: hidden;
    }

    .carousel-scrollbar-thumb {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        background: linear-gradient(90deg, #FF1493, #FFD700);
        border-radius: 4px;
        transition: left 0.1s ease;
        box-shadow: 0 2px 8px rgba(255, 20, 147, 0.5);
    }
}

/* ===== DESKTOP (> 768px) - Affichage normal en grille ===== */
@media (min-width: 769px) {
    #selectedPersonnagesClassique {
        margin: 2rem auto;
        max-width: 90%;
    }

    .categories-header {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 3px;
        margin-bottom: 3px;
        align-items: end;
        width: 100%;
    }

    .category-header-item {
        text-align: center;
        font-size: 11px;
        font-weight: 700;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        height: 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        hyphens: auto;
    }

    .category-header-item::after {
        content: '';
        display: block;
        width: 50%;
        height: 3px;
        background-color: #ffffff;
        margin: 8px auto 0;
        border-radius: 2px;
    }

    .player-categories {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 3px;
        margin-top: 0.4rem;
        width: 100%;
    }

    .selected-player {
        animation: slideInLeft 0.5s ease-out;
    }

    .selected-player.new-player {
        animation: slideInLeft 0.5s ease-out, pulse 2s ease-in-out;
    }

    .category {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        height: 100px;
        background: rgba(139, 0, 139, 0.3);
        border-radius: 5px;
        border: 1px solid rgba(255, 215, 0, 0.2);
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .category:hover {
        transform: translateY(-3px);
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 215, 0, 0.4);
    }

    .category.correct {
        background: linear-gradient(135deg, #069B4E, #016901);
        border-color: #069B4E;
    }

    .category.incorrect {
        background: linear-gradient(135deg, #B93F44, #CC0000);
        border-color: #B93F44;
    }

    .category.partial {
        background: linear-gradient(135deg, #CC7700, #994400);
        border-color: #CC7700;
    }

    .category-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        gap: 4px;
    }

    .player-main-photo {
        width: 100px;
        height: 100px;
        object-fit: cover;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
        border-radius: 4px;
    }

    .player-name-main {
        position: absolute;
        bottom: 4px;
        left: 2px;
        right: 2px;
        opacity: 0;
        transform: scale(1) !important;
        transition: opacity 0.25s ease;
        z-index: 10;
        background: rgba(139, 0, 139, 0.95);
        backdrop-filter: blur(8px);
        border-radius: 4px;
        padding: 4px 6px;
        border: 1px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        pointer-events: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
        font-size: 0.6rem;
        font-weight: 600;
        color: #ffffff;
        text-align: center;
        line-height: 1.2;
        overflow: visible;
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
        will-change: opacity;
        padding: 3px 5px;
    }

    .category:hover .player-name-main {
        opacity: 1;
    }

    .category-value {
        font-size: 1rem;
        font-weight: bold;
        color: white;
        text-align: center;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        word-break: break-word;
        hyphens: auto;
        line-height: 1.2;
        max-width: 100%;
        padding: 0 0.2rem;
    }

    .arrow-indicator {
        width: 22px;
        height: 22px;
    }

    .arrow-indicator svg {
        width: 13px;
        height: 13px;
    }

    /* Masquer les éléments du carrousel sur desktop */
    .carousel-wrapper,
    .carousel-scroll-hint,
    .carousel-scrollbar {
        display: none;
    }
}

/* ===== AJUSTEMENTS POUR PETITS ÉCRANS MOBILES ===== */
@media (max-width: 480px) {
    .categories-header {
        grid-template-columns: repeat(10, 88px);
    }

    .category-header-item {
        width: 88px;
        height: 48px;
        font-size: 0.6rem;
    }

    .player-categories {
        grid-template-columns: repeat(10, 88px);
    }

    .category {
        width: 88px;
        height: 88px;
    }

    .player-main-photo {
        width: 78px;
        height: 78px;
    }

    .category-value {
        font-size: 0.68rem;
        max-width: 82px;
    }

    .player-name-main {
        font-size: 0.5rem !important;
    }

    .arrow-indicator {
        width: 18px;
        height: 18px;
    }
}

/* ===== AJUSTEMENTS POUR TRÈS PETITS ÉCRANS ===== */
@media (max-width: 360px) {
    .categories-header {
        grid-template-columns: repeat(10, 76px);
    }

    .category-header-item {
        width: 76px;
        height: 42px;
        font-size: 0.54rem;
    }

    .player-categories {
        grid-template-columns: repeat(10, 76px);
    }

    .category {
        width: 76px;
        height: 76px;
    }

    .player-main-photo {
        width: 66px;
        height: 66px;
    }

    .category-value {
        font-size: 0.6rem;
        max-width: 70px;
    }

    .player-name-main {
        font-size: 0.5rem !important;
    }

    .carousel-scroll-hint {
        font-size: 0.7rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

/* ===== SUPPORT TACTILE ===== */
@media (hover: none) and (pointer: coarse) and (max-width: 768px) {
    .player-name-main {
        opacity: 0.9 !important;
    }

    .category:active {
        transform: scale(0.98);
    }
}


/* ===== WRAPPER DU MENU ===== */
.game-menu-wrapper {
    display: flex;
    justify-content: center;
    margin: 0.8rem auto 1.5rem auto;
    padding: 0 1rem;
    animation: fadeInDown 0.5s ease-out;
}

/* ===== CONTENEUR PRINCIPAL DU MENU ===== */
.game-menu {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, rgba(139, 0, 139, 0.95), rgba(75, 0, 130, 0.95));
    border: 3px solid #FFD700;
    border-radius: 16px;
    padding: 0.3rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
    overflow: visible;
    z-index: 100;
}

/* ===== BOUTONS DU MENU ===== */
.menu-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.72rem;
    font-weight: bold;
    background: transparent;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    min-width: 68px;
    overflow: visible;
}

.menu-btn:hover {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.3), rgba(255, 215, 0, 0.3));
    transform: translateY(-3px);
}

.menu-btn:active {
    transform: translateY(-1px);
}

/* Effet de brillance au survol - CORRIGÉ */
.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none; /* IMPORTANT : empêche les interactions */
    z-index: 1; /* S'assure que c'est au-dessus */
    border-radius: 14px; /* AJOUTÉ : contient visuellement l'effet */
}

.menu-btn:hover::before {
    left: 100%;
}


/* ===== ICÔNES ET TEXTE ===== */
.menu-icon {
    font-size: 1.35rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2; /* Au-dessus du ::before */
}

.menu-text {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    z-index: 2; /* Au-dessus du ::before */
}

/* ===== DROPDOWN MODES ===== */
.modes-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: 3px solid #FFD700;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.modes-dropdown.show {
    display: block;
}

/* Flèche du dropdown */
.modes-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #FFD700;
}

.mode-option {
    padding: 1rem 1.2rem;
    color: #8B008B;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.mode-option:last-child {
    border-bottom: none;
}

.mode-option:hover:not(.disabled) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 20, 147, 0.2));
    transform: translateX(5px);
}

.mode-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== MODALS GÉNÉRAUX ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, rgba(139, 0, 139, 0.95), rgba(75, 0, 130, 0.95));
    border: 5px solid #FFD700;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.8rem;
    color: #FFD700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.modal-description {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== STATISTIQUES ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-box {
    background: rgba(255, 215, 0, 0.2);
    border: 3px solid #FFD700;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PARTIES ===== */
.parties-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.partie-item {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.partie-item:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateX(5px);
}

.partie-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.partie-checkbox {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: #FFD700;
}

.partie-name {
    font-size: 1rem;
    color: white;
    font-weight: bold;
    flex: 1;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.modal-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-btn.primary {
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.4);
}

.modal-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.6);
}

.modal-btn.secondary {
    background: linear-gradient(135deg, #FF1493, #8B008B);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.modal-btn.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
}

/* ===== AIDE ===== */
.help-content {
    color: white;
}

.help-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-left: 5px solid #FFD700;
    border-radius: 10px;
}

.help-section h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.help-section p,
.help-section li {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.help-section ol,
.help-section ul {
    margin-left: 1.5rem;
}

.help-list {
    list-style: none;
    margin-left: 0;
}

.help-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.help-list li::before {
    content: '✨';
    position: absolute;
    left: 0;
}

.help-correct {
    color: #00FF00;
    font-weight: bold;
}

.help-incorrect {
    color: #FF4444;
    font-weight: bold;
}

.help-arrow {
    color: #FFD700;
    font-weight: bold;
}

/* ===== À PROPOS ===== */
.about-content {
    color: white;
}

.about-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.about-section h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-section p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.about-list {
    list-style: none;
    margin-left: 0;
}

.about-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.about-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
}

.about-list strong {
    color: #FFD700;
}

/* ===== RESPONSIVE TABLETTE (< 1024px) ===== */
@media (max-width: 1024px) {
    .game-menu {
        padding: 0.4rem;
        border-width: 3px;
        border-radius: 16px;
    }

    .menu-btn {
        padding: 0.8rem 1rem;
        min-width: 80px;
        gap: 0.3rem;
    }

    .menu-icon {
        font-size: 1.5rem;
    }

    .menu-text {
        font-size: 0.7rem;
    }
}

/* ===== RESPONSIVE MOBILE (< 768px) ===== */
@media (max-width: 768px) {
    .game-menu-wrapper {
        margin: 0.5rem auto 1rem auto;
        padding: 0 0.2rem;
        position: static;
    }

    .game-menu {
        flex-wrap: nowrap;
        justify-content: space-around;
        gap: 0;
        padding: 0.3rem 0.15rem;
        border-radius: 16px;
        border-width: 2px;
        background: linear-gradient(135deg, rgba(139, 0, 139, 0.95), rgba(75, 0, 130, 0.95));
        box-shadow: 0 4px 16px rgba(0,0,0,0.4);
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-btn {
        padding: 0.5rem 0.15rem 0.4rem;
        min-width: 0;
        flex: 1;
        max-width: none;
        border-radius: 12px;
        gap: 0.2rem;
    }

    .menu-icon {
        font-size: 1.25rem;
    }

    .menu-text {
        display: block;
        font-size: 0.5rem;
        letter-spacing: 0.3px;
    }

    /* Dropdown s'ouvre vers le bas normalement */
    .modes-dropdown {
        top: calc(100% + 8px);
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 190px;
        width: max-content;
    }

    .modes-dropdown::before {
        top: -10px;
        bottom: auto;
        border-top: none;
        border-bottom: 10px solid #FFD700;
    }

    @keyframes dropdownSlide {
        from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    .mode-option {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    .game-mode.active {
        padding-bottom: 0;
    }
}

/* ===== RESPONSIVE PETIT MOBILE (< 480px) ===== */
@media (max-width: 480px) {
    .game-menu {
        gap: 0;
        padding: 0.25rem 0.1rem;
    }

    .menu-btn {
        padding: 0.4rem 0.1rem 0.35rem;
        flex: 1;
        max-width: none;
    }

    .menu-icon {
        font-size: 1.1rem;
    }

    .menu-text {
        display: block;
        font-size: 0.44rem;
        letter-spacing: 0.2px;
    }

    .modes-dropdown {
        min-width: 160px;
    }

    .mode-option {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }
}

/* ===== RESPONSIVE TRÈS PETIT MOBILE (< 360px) ===== */
@media (max-width: 360px) {
    .game-menu {
        padding: 0.4rem;
    }

    .menu-btn {
        padding: 0.5rem 0.6rem;
        gap: 0.2rem;
    }

    .menu-icon {
        font-size: 1.2rem;
    }

    .menu-text {
        font-size: 0.55rem;
        letter-spacing: 0.2px;
    }
}

/* ===== ACCESSIBILITÉ ===== */
.menu-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.menu-btn:focus:not(:focus-visible) {
    outline: none;
}

/* ===== SUPPORT TACTILE ===== */
@media (hover: none) and (pointer: coarse) {
    .menu-btn:hover {
        background: transparent;
        transform: none;
    }

    .menu-btn:active {
        background: linear-gradient(135deg, rgba(255, 20, 147, 0.4), rgba(255, 215, 0, 0.4));
        transform: scale(0.95);
    }
    
    /* Désactiver l'animation de brillance sur mobile */
    .menu-btn::before {
        display: none;
    }
}

/* ===== SCROLLBAR PERSONNALISÉE POUR MODALS ===== */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(139, 0, 139, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF1493, #FFD700);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFD700, #FF1493);
}

/* ===== MODE STAND - AFFICHAGE DU STAND DU JOUR ===== */

.stand-display {
    display: flex;
    justify-content: center;
    margin: 1rem auto 1.5rem auto;
    animation: fadeInDown 0.6s ease-out;
}

.stand-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 165, 0, 0.95));
    border: 5px solid #FF1493;
    border-radius: 20px;
    padding: 1.1rem 1.8rem;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    min-width: 300px;
    text-align: center;
}



@keyframes standShine {
    0%, 100% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    50% { transform: translateX(50%) translateY(50%) rotate(180deg); }
}

.stand-card-header {
    margin-bottom: 0.5rem;
}

.stand-card-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #8B008B;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.stand-card-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #8B008B;
    text-shadow: 
        3px 3px 0 #FF1493,
        -1px -1px 0 rgba(255, 255, 255, 0.5),
        1px -1px 0 rgba(255, 255, 255, 0.5),
        -1px 1px 0 rgba(255, 255, 255, 0.5),
        1px 1px 0 rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 20, 147, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    animation: standPulse 2s ease-in-out infinite;
}

@keyframes standPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== MODE STAND - LISTE DES TENTATIVES ===== */

.stand-guesses-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem auto;
    max-width: 600px;
    padding: 0 1rem;
}

.stand-guess {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(139, 0, 139, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stand-guess::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stand-guess:hover::before {
    transform: translateX(100%);
}

.stand-guess.new-guess {
    animation: slideInLeft 0.5s ease-out;
}

.stand-guess.correct-guess {
    background: linear-gradient(135deg, #069B4E, #016901);
    border-color: #00FF00;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4);
}

.stand-guess.correct-guess::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: correctPulse 2s ease-in-out infinite;
}

.stand-guess.incorrect-guess {
    background: linear-gradient(135deg, #B93F44, #CC0000);
    border-color: #FF4444;
}

.stand-guess-photo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.stand-guess-name {
    flex: 1;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stand-guess-status {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    flex-shrink: 0;
}

/* ===== RESPONSIVE STAND MODE ===== */

@media (max-width: 768px) {
    .stand-card {
        min-width: auto;
        width: 90%;
        padding: 1.5rem 2rem;
    }

    .stand-card-name {
        font-size: 2rem;
    }

    .stand-guesses-list {
        padding: 0 0.5rem;
        gap: 0.4rem;
    }

    .stand-guess {
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .stand-guess-photo {
        width: 45px;
        height: 45px;
    }

    .stand-guess-name {
        font-size: 0.9rem;
    }

    .stand-guess-status {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .stand-card-name {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .stand-guess {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .stand-guess-photo {
        width: 40px;
        height: 40px;
    }

    .stand-guess-name {
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }

    .stand-guess-status {
        font-size: 1.2rem;
    }
}

/* ===== ANIMATIONS ===== */

@keyframes correctPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: translateX(-100%);
    }
    50% { 
        opacity: 0.6;
        transform: translateX(100%);
    }
}

#searchInputStand {
    width: 100%;
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 4px solid #FFD700;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #8B008B;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4),
                inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

#searchInputStand:focus {
    border-color: #FF1493;
    box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6),
                inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#searchInputStand::placeholder {
    color: rgba(139, 0, 139, 0.5);
}

/* ===== MODE CITATION ===== */


#searchInputCitation {
    width: 100%;
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 4px solid #FFD700;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #8B008B;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4),
                inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

#searchInputCitation:focus {
    border-color: #FF1493;
    box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6),
                inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#searchInputCitation::placeholder {
    color: rgba(139, 0, 139, 0.5);
}


.citation-display {
    display: flex;
    justify-content: center;
    margin: 1rem auto 1.5rem auto;
    animation: fadeInDown 0.6s ease-out;
}

.citation-card {
    background: linear-gradient(135deg, rgba(138, 0, 255, 0.95), rgba(255, 0, 212, 0.95));
    border: 5px solid #FFD700;
    border-radius: 20px;
    padding: 1.1rem 1.8rem;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 700px;
    text-align: center;
}



.citation-card-header {
    margin-bottom: 1rem;
}

.citation-card-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.citation-card-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    animation: standPulse 2s ease-in-out infinite;
    line-height: 1.4;
    font-style: italic;
}

.citation-card-text::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    opacity: 0.5;
}

.citation-card-text::after {
    content: '"';
    font-size: 3rem;
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    opacity: 0.5;
}

/* ===== MODE OST - STYLES SPÉCIFIQUES ===== */
.ost-display {
    display: flex;
    justify-content: center;
    margin: 1rem auto 1.5rem auto;
    animation: fadeInDown 0.6s ease-out;
}

.ost-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.95), rgba(0, 51, 255, 0.95));
    border: 5px solid #FFD700;
    border-radius: 20px;
    padding: 1.1rem 1.8rem;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 700px;
    text-align: center;
}


.ost-card-header {
    margin-bottom: 1rem;
}

.ost-card-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ost-player {
    margin: 0.7rem 0;
    position: relative;
    z-index: 1;
}

.ost-player audio {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    outline: none;
}

.ost-card-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    animation: standPulse 2s ease-in-out infinite;
    margin-top: 1rem;
}

#searchInputOST {
    width: 100%;
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 4px solid #FFD700;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #8B008B;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4),
                inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

#searchInputOST:focus {
    border-color: #FF1493;
    box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6),
                inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#searchInputOST::placeholder {
    color: rgba(139, 0, 139, 0.5);
}

/* ===== INDICES INTÉGRÉS DANS LA CARD (style DLE) ===== */
.card-hints-section {
    display: none;
    margin-top: 0.8rem;
    padding-top: 0.7rem;
    border-top: 2px solid rgba(255, 215, 0, 0.4);
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.card-hints-section.visible {
    display: flex;
}

.card-hint-item {
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 14px;
    padding: 0.5rem 0.7rem;
    min-width: 110px;
    max-width: 140px;
    text-align: center;
    cursor: not-allowed;
    transition: all 0.3s ease;
    flex: 1;
}

.card-hint-item.unlocked {
    cursor: pointer;
    border-color: #FFD700;
    background: rgba(0, 0, 0, 0.5);
}

.card-hint-item.unlocked:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.15);
}

.card-hint-item.revealed {
    border-color: #00FF88;
    background: rgba(0, 255, 136, 0.15);
}

.card-hint-icon {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.3rem;
}

.card-hint-label {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    margin-bottom: 0.4rem;
}

.card-hint-lock {
    font-size: 1.1rem;
    display: block;
}

.card-hint-unlock-count {
    font-size: 0.68rem;
    color: rgba(255, 215, 0, 0.85);
    display: block;
    margin-top: 0.2rem;
    font-weight: bold;
}

.card-hint-value {
    font-size: 0.85rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    display: none;
    margin-top: 0.3rem;
    line-height: 1.3;
}

.card-hint-item.revealed .card-hint-value {
    display: block;
}

.card-hint-item.revealed .card-hint-lock {
    display: none;
}

.card-hints-intro {
    width: 100%;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin-bottom: 0.3rem;
}

/* ===== MODE CLASSIQUE - BOX DU JOUR ===== */
.classique-display {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto 2rem auto;
    animation: fadeInDown 0.6s ease-out;
}

.classique-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 140, 0, 0.95));
    border: 5px solid #FF1493;
    border-radius: 20px;
    padding: 1rem 1.8rem;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    min-width: 300px;
    max-width: 700px;
    width: 100%;
    text-align: center;
}


.classique-card-header {
    margin-bottom: 0.5rem;
}

.classique-card-label {
    font-size: 1rem;
    font-weight: 900;
    color: #8B008B;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

/* Ajustement des card-hints dans stand-card (fond sombre pour lisibilité) */
.stand-card .card-hint-item,
.classique-card .card-hint-item {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(139, 0, 139, 0.6);
}

.stand-card .card-hint-item.unlocked,
.classique-card .card-hint-item.unlocked {
    border-color: #8B008B;
    background: rgba(0, 0, 0, 0.4);
}

.stand-card .card-hint-item.unlocked:hover,
.classique-card .card-hint-item.unlocked:hover {
    box-shadow: 0 6px 20px rgba(139, 0, 139, 0.4);
    background: rgba(139, 0, 139, 0.15);
}

.stand-card .card-hint-item.revealed,
.classique-card .card-hint-item.revealed {
    border-color: #8B008B;
    background: rgba(139, 0, 139, 0.2);
}

.stand-card .card-hint-value,
.classique-card .card-hint-value {
    color: #8B008B;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.stand-card .card-hint-unlock-count,
.classique-card .card-hint-unlock-count {
    color: rgba(139, 0, 139, 0.9);
}

.stand-card .card-hints-intro,
.classique-card .card-hints-intro {
    color: rgba(139, 0, 139, 0.7);
}

.stand-card .card-hints-section,
.classique-card .card-hints-section {
    border-top-color: rgba(139, 0, 139, 0.3);
}

@media (max-width: 768px) {
    .classique-card {
        min-width: auto;
        width: 98%;
        padding: 1.2rem 1rem;
    }
}

@media (max-width: 480px) {
    .classique-card {
        width: 99%;
        padding: 1rem 0.8rem;
        border-radius: 16px;
        border-width: 4px;
    }
}

/* ===== RESPONSIVE CITATION & OST ===== */
@media (max-width: 768px) {
    .citation-card,
    .ost-card {
        min-width: auto;
        width: 98%;
        padding: 1.2rem 1rem;
    }

    .citation-card-text {
        font-size: 1.3rem;
    }

    .ost-card-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .citation-card-text {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .ost-card-name {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .ost-player audio {
        max-width: 100%;
    }
}

/* ===== STYLES DE LA BOX PROMOTIONNELLE ===== */
        @keyframes promoFadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .promo-section {
            position: relative;
            z-index: 1;
            text-align: center;
            padding: 1.5rem 1rem;
            margin: 3rem auto 2rem auto;
            max-width: 520px;
            width: 100%;
            clear: both;
            animation: promoFadeInUp 0.8s ease-out 0.6s both;
        }

        /* ===== PROMO BOX - JoJo Speedlines Style ===== */

        @keyframes promoSpeedlinesRotate {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }

        @keyframes promoPulse {
            0%, 100% { 
                box-shadow: 
                    0 0 20px rgba(255, 20, 147, 0.7), 
                    0 0 40px rgba(255, 215, 0, 0.4),
                    0 0 60px rgba(120, 0, 200, 0.4),
                    inset 0 0 30px rgba(255, 20, 147, 0.1);
            }
            50% { 
                box-shadow: 
                    0 0 35px rgba(255, 20, 147, 1), 
                    0 0 70px rgba(255, 215, 0, 0.7),
                    0 0 100px rgba(120, 0, 200, 0.6),
                    inset 0 0 50px rgba(255, 215, 0, 0.15);
            }
        }

        @keyframes promoBorderSpin {
            0%   { border-color: #FF1493; }
            25%  { border-color: #FFD700; }
            50%  { border-color: #00E5FF; }
            75%  { border-color: #FF6600; }
            100% { border-color: #FF1493; }
        }

        @keyframes promoShine {
            0%   { left: -100%; opacity: 0; }
            30%  { opacity: 1; }
            100% { left: 150%; opacity: 0; }
        }

        .promo-box {
            background: linear-gradient(
                135deg,
                rgba(80, 0, 120, 0.92) 0%,
                rgba(20, 0, 60, 0.95) 25%,
                rgba(100, 0, 50, 0.92) 50%,
                rgba(20, 20, 80, 0.95) 75%,
                rgba(80, 0, 120, 0.92) 100%
            );
            border: 4px solid #FF1493;
            border-radius: 16px;
            padding: 1.8rem 1.2rem 1.5rem;
            position: relative;
            overflow: hidden;
            animation: promoPulse 3s ease-in-out infinite, promoBorderSpin 6s linear infinite;
        }

        /* --- Speedlines SVG en fond --- */
        .promo-box::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300'%3E%3Cg stroke-width='1.2' opacity='0.35'%3E%3Cg stroke='%23FF1493'%3E%3Cline x1='300' y1='150' x2='0' y2='0'/%3E%3Cline x1='300' y1='150' x2='60' y2='0'/%3E%3Cline x1='300' y1='150' x2='120' y2='0'/%3E%3Cline x1='300' y1='150' x2='180' y2='0'/%3E%3Cline x1='300' y1='150' x2='240' y2='0'/%3E%3Cline x1='300' y1='150' x2='0' y2='100'/%3E%3Cline x1='300' y1='150' x2='0' y2='200'/%3E%3C/g%3E%3Cg stroke='%23FFD700'%3E%3Cline x1='300' y1='150' x2='300' y2='0'/%3E%3Cline x1='300' y1='150' x2='360' y2='0'/%3E%3Cline x1='300' y1='150' x2='420' y2='0'/%3E%3Cline x1='300' y1='150' x2='480' y2='0'/%3E%3Cline x1='300' y1='150' x2='540' y2='0'/%3E%3Cline x1='300' y1='150' x2='600' y2='0'/%3E%3C/g%3E%3Cg stroke='%2300E5FF'%3E%3Cline x1='300' y1='150' x2='0' y2='300'/%3E%3Cline x1='300' y1='150' x2='60' y2='300'/%3E%3Cline x1='300' y1='150' x2='120' y2='300'/%3E%3Cline x1='300' y1='150' x2='180' y2='300'/%3E%3Cline x1='300' y1='150' x2='240' y2='300'/%3E%3Cline x1='300' y1='150' x2='600' y2='100'/%3E%3Cline x1='300' y1='150' x2='600' y2='200'/%3E%3C/g%3E%3Cg stroke='%23FF6600'%3E%3Cline x1='300' y1='150' x2='300' y2='300'/%3E%3Cline x1='300' y1='150' x2='360' y2='300'/%3E%3Cline x1='300' y1='150' x2='420' y2='300'/%3E%3Cline x1='300' y1='150' x2='480' y2='300'/%3E%3Cline x1='300' y1='150' x2='540' y2='300'/%3E%3Cline x1='300' y1='150' x2='600' y2='300'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            background-size: cover;
            background-position: center;
            pointer-events: none;
            z-index: 0;
        }

        /* --- Reflet brillant animé --- */
        .promo-box::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 60%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.08),
                transparent
            );
            animation: promoShine 4s ease-in-out infinite;
            pointer-events: none;
            z-index: 0;
        }

        .promo-title {
            font-size: 1.25rem;
            font-family: 'SFedora', 'Impact', sans-serif;
            font-weight: 900;
            color: #FFD700;
            text-shadow:
                3px 3px 0 #FF1493,
                -2px -2px 0 #8B008B,
                0 0 25px rgba(255, 215, 0, 0.9),
                0 0 50px rgba(255, 20, 147, 0.5);
            margin-bottom: 0.3rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            position: relative;
            z-index: 1;
        }

        .promo-subtitle {
            font-size: 0.85rem;
            color: #FFD700;
            font-weight: 600;
            margin-bottom: 1.2rem;
            letter-spacing: 1px;
            position: relative;
            z-index: 1;
            text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
            opacity: 0.9;
            font-family: 'SFedora', 'Impact', sans-serif;
        }

        .promo-games-container {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }

        .promo-game-card {
            width: 90px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            animation: promoFadeInUp 0.6s ease-out both;
            transition: transform 0.2s ease, filter 0.2s ease;
        }

        .promo-game-card:hover {
            transform: translateY(-4px) scale(1.06);
            filter: drop-shadow(0 0 10px rgba(239, 72, 160, 0.8));
        }

        .promo-game-card:nth-child(1) { animation-delay: 1s; }
        .promo-game-card:nth-child(2) { animation-delay: 1.15s; }
        .promo-game-card:nth-child(3) { animation-delay: 1.3s; }

        .promo-game-image {
            width: 75px;
            height: 75px;
            object-fit: contain;
            display: block;
            border-radius: 12px;
            border: 3px solid #FFD700;
            background: rgba(255,255,255,0.08);
            padding: 4px;
            box-shadow: 0 0 12px rgba(255, 215, 0, 0.5), 0 0 25px rgba(255, 20, 147, 0.3);
        }

        .promo-game-name {
            font-size: 0.72rem;
            font-weight: 900;
            color: #FFD700;
            text-align: center;
            letter-spacing: 0.5px;
            text-shadow: 1px 1px 4px rgba(0,0,0,0.9), 0 0 10px rgba(255, 20, 147, 0.8);
        }

        .promo-game-subtitle {
            font-size: 0.6rem;
            color: rgba(255,255,255,0.55);
            text-align: center;
            margin-top: -0.3rem;
        }


        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .promo-section {
                padding: 1.2rem 0.8rem;
                margin: 1.5rem auto 0.8rem auto;
                max-width: 400px;
            }

            .promo-box {
                padding: 1.2rem 0.8rem;
                border-width: 2px;
            }

            .promo-title {
                font-size: 1.1rem;
            }

            .promo-subtitle {
                font-size: 0.85rem;
                margin-bottom: 0.8rem;
            }

            .promo-games-container {
                gap: 0.8rem;
            }

            .promo-game-card {
                width: 100px;
                height: 100px;
            }

            .promo-game-name {
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            .promo-section {
                max-width: 320px;
            }

            .promo-title {
                font-size: 1rem;
            }

            .promo-subtitle {
                font-size: 0.8rem;
            }

            .promo-game-card {
                width: 90px;
                height: 90px;
            }

            .promo-game-name {
                font-size: 0.75rem;
            }
        }
/* ===== HOMEPAGE TAGLINE (police JoJo) ===== */
@font-face {
    font-family: 'SFedora';
    src: url('../../polices/SF Fedora.ttf') format('truetype');
}

.homepage-tagline {
    font-family: 'SFedora', 'Impact', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    color: #FFD700;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 3px 3px 0px rgba(0,0,0,0.9);
    letter-spacing: 3px;
    margin: -8px 0 20px 0;
    text-transform: uppercase;
}

/* ===== BOX INDICATRICE DE COULEUR (mode classique) ===== */
.color-legend-box {
    background: rgba(10, 0, 25, 0.82);
    border: 2px solid rgba(255, 215, 0, 0.45);
    border-radius: 10px;
    padding: 16px 24px 18px;
    margin: 0 auto 20px auto;
    max-width: 560px;
    width: 95%;
    box-shadow: 0 0 18px rgba(139, 0, 139, 0.4), inset 0 1px 0 rgba(255,215,0,0.1);
    position: relative;
}

/* Coin décoratif style manga */
.color-legend-box::before,
.color-legend-box::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #FFD700;
    border-style: solid;
    opacity: 0.7;
}
.color-legend-box::before {
    top: 5px; left: 5px;
    border-width: 2px 0 0 2px;
}
.color-legend-box::after {
    bottom: 5px; right: 5px;
    border-width: 0 2px 2px 0;
}

.color-legend-title {
    font-family: 'SFedora', 'Impact', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    color: #FFD700;
    text-align: center;
    margin: 0 0 14px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

.color-legend-items {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.color-legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.color-legend-square {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.correct-square {
    background: linear-gradient(135deg, #069B4E, #016901);
    border-color: #069B4E;
}

.incorrect-square {
    background: linear-gradient(135deg, #B93F44, #CC0000);
    border-color: #B93F44;
}

.partial-square {
    background: linear-gradient(135deg, #cc6600, #994d00);
    border-color: #ff8c00;
}

.arrow-up-square {
    background: linear-gradient(135deg, #22e86b, #0aab44);
    border-color: #22e86b;
    box-shadow: 0 0 12px rgba(34, 232, 107, 0.6);
}

.arrow-down-square {
    background: linear-gradient(135deg, #ff5f5f, #cc0000);
    border-color: #ff5f5f;
    box-shadow: 0 0 12px rgba(255, 60, 60, 0.6);
}

.color-legend-square svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.6));
}

.color-legend-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== RÉDUCTION POLICE VALEURS CASES (était trop grand) ===== */
.category-value {
    font-size: clamp(0.7rem, calc(0.2rem - (var(--text-length, 0) * 0.02rem)), 1rem) !important;
    font-weight: 800 !important;
}

/* ===== INDICE DESCRIPTION STAND : limite la hauteur et scrollable ===== */
.card-hint-item[data-hint="explication"] .card-hint-value,
.card-hint-item[data-hint="stand_info"] .card-hint-value {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.4;
    max-height: 90px;
    overflow-y: auto;
    text-align: left;
    padding: 2px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,215,0,0.5) transparent;
}

.card-hint-item[data-hint="explication"] .card-hint-value::-webkit-scrollbar,
.card-hint-item[data-hint="stand_info"] .card-hint-value::-webkit-scrollbar {
    width: 4px;
}
.card-hint-item[data-hint="explication"] .card-hint-value::-webkit-scrollbar-thumb,
.card-hint-item[data-hint="stand_info"] .card-hint-value::-webkit-scrollbar-thumb {
    background: rgba(255,215,0,0.5);
    border-radius: 4px;
}
/* ===== BARRE DE NAVIGATION ENTRE LES MODES ===== */
.mode-switcher-bar {
    display: flex;
    justify-content: center;
    margin: 0.6rem auto 1rem auto;
    padding: 0 1rem;
}

.mode-switcher-track {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 20, 0.75);
    border: 2px solid rgba(239, 72, 160, 0.35);
    border-radius: 50px;
    padding: 6px 10px;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.mode-switcher-divider {
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    flex-shrink: 0;
}

.mode-switcher-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    padding: 7px 16px;
    transition: all 0.25s ease;
    position: relative;
    min-width: 72px;
    color: rgba(255, 255, 255, 0.55);
}

.mode-switcher-btn:hover:not(.active) {
    background: rgba(239, 72, 160, 0.12);
    border-color: rgba(239, 72, 160, 0.3);
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.05);
}

.mode-switcher-btn.active {
    background: linear-gradient(135deg, rgba(239, 72, 160, 0.9), rgba(180, 30, 120, 0.9));
    border-color: rgba(255, 160, 210, 0.6);
    color: #fff;
    box-shadow: 0 2px 12px rgba(239, 72, 160, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
}

.mode-switcher-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: block;
}

.mode-switcher-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1;
    display: block;
}

/* Coche de complétion (pour plus tard si besoin) */
.mode-switcher-check {
    position: absolute;
    bottom: 3px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    color: white;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.4);
}

@media (max-width: 480px) {
    .mode-switcher-track {
        padding: 5px 7px;
        gap: 0;
    }
    .mode-switcher-btn {
        min-width: 56px;
        padding: 6px 10px;
    }
    .mode-switcher-icon {
        font-size: 1rem;
    }
    .mode-switcher-label {
        font-size: 0.52rem;
    }
    .mode-switcher-divider {
        width: 18px;
    }
}
/* ===== COMPTEUR DE JOUEURS ===== */
.players-found-counter {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin: 6px auto 4px;
    letter-spacing: 0.3px;
}

.players-count-number {
    color: #EF48A0;
    font-weight: 900;
}

/* ===== BANNIÈRE PERSONNAGE D'HIER ===== */
.yesterday-banner {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 8px 16px;
    margin: 12px auto 6px;
    max-width: 480px;
    letter-spacing: 0.2px;
}

.yesterday-banner:empty {
    display: none;
}

.yesterday-num {
    color: #EF48A0;
    font-weight: 900;
}

.yesterday-name {
    color: #EF48A0;
    font-weight: 900;
    font-size: 1rem;
}

/* ===== CARROUSEL DES INDICES (MOBILE) ===== */
@media (max-width: 768px) {
    /* La section des indices devient un carrousel horizontal */
    .card-hints-section.visible {
        display: block;
        padding-top: 0.7rem;
    }

    .hints-carousel-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .hints-carousel-track {
        display: flex;
        gap: 0.6rem;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.3rem 0.2rem 0.5rem;
    }

    .hints-carousel-track::-webkit-scrollbar {
        display: none;
    }

    /* Les card-hint-item dans le carrousel */
    .hints-carousel-track .card-hint-item {
        flex: 0 0 120px;
        min-width: 120px;
        max-width: 120px;
    }

    /* Dots de navigation des indices */
    .hints-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 0.4rem;
    }

    .hints-carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.3);
        transition: background 0.3s;
        cursor: pointer;
    }

    .hints-carousel-dot.active {
        background: #FFD700;
    }

    /* L'intro du carrousel (— INDICES —) reste en pleine largeur */
    .card-hints-intro {
        width: 100%;
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* Sur desktop, on garde le flex normal wrap */
@media (min-width: 769px) {
    .hints-carousel-wrapper {
        display: contents; /* transparent, les enfants remontent dans le flex parent */
    }

    .hints-carousel-track {
        display: contents;
    }

    .hints-carousel-dots {
        display: none;
    }
}