:root {
    --primary-color: hsla(268, 100%, 7%, 0.851);
    --secondary-color: hsl(270, 100%, 14%);
    --text-color: hsl(0, 0%, 86%);
    --accent-color: hsl(141, 76%, 46%);
    --border-radius: 11px;
    --game-max-width: 800px;
}

.game-container {
    max-width: var(--game-max-width);
    margin: 0 auto;
    padding: 50px;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: 'October Crow', sans-serif;
    text-shadow: 0 0 10px hsl(141, 76%, 46%);
}

.game-button {
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-family: 'lazy dog', sans-serif;
    text-transform: uppercase;
    margin: 0 10px;
}

.game-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-color);
}

.player-selection {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.player-selection .game-button {
    min-width: 150px;
}

#game-rules {
    background-color: var(--primary-color);
    border: 1px dashed var(--accent-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px auto;
    max-width: 100%;
    color: var(--text-color);
    font-family: 'lazy dog', sans-serif;
}

#role-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    display: none; /* Cache par defaut */
}

.role-card {
    background-color: var(--secondary-color);
    border: 1px dashed var(--accent-color);
    border-radius: var(--border-radius);
    padding: 20px;
    width: 300px;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-family: 'lazy dog', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--accent-color);
}

.role-card h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0;
    text-align: center;
    font-family: 'October Crow', sans-serif;
}

.role-card h2, .role-card h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    text-align: center;
}

.role-card ul {
    padding-left: 20px;
    list-style-type: none;
}

.role-card li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.role-card li:before {
    content: "✝";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.role-card p {
    line-height: 1.5;
}

.bingo-message {
    color: var(--accent-color);
    font-size: 2rem;
    text-align: center;
    margin: 20px 0;
    animation: pulse 1s infinite;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowingBorder {
    0%, 100% {
        box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--accent-color);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .game-container {
        padding: 20px;
    }
    
    .game-header h1 {
        font-size: 2rem;
        padding-top: 100px;
    }
    
    .role-card {
        width: 100%;
    }
    
    .player-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .player-selection .game-button {
        width: 100%;
        margin: 5px 0;
    }
}