/* Définition des variables de couleur pour le néon */
:root {
    --neon-red: #ff3366;
    --neon-cyan: #33ffff;
    --dark-purple: #12002b;
    --deep-purple: #0a001a;
    --neon-green: #00ff7f; /* Nouvelle couleur pour la victoire */
}

body {
    background-color: var(--deep-purple);
    font-family: monospace;
    color: var(--neon-cyan);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; 
}

/* --- Introduction (Clignotement D.V.) --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--deep-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    transition: opacity 1s ease-out; 
}

#intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#intro-title {
    font-size: 4em;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
    margin: 0;
    letter-spacing: 3px;
    white-space: nowrap;
    margin-bottom: 20px; 
}

#intro-signature {
    font-size: 1.5em;
    color: var(--neon-red); 
    text-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red);
    animation: neon-blink 1.2s infinite alternate; 
    margin: 0;
}

@keyframes neon-blink {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* NOUVEAU : Style pour le bouton de démarrage */
#start-button {
    margin-top: 30px;
    padding: 15px 30px;
    background-color: var(--neon-red); 
    color: var(--deep-purple);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 15px var(--neon-red), 0 0 30px var(--neon-red);
    transition: all 0.3s ease;
}

#start-button:hover {
    background-color: white;
    box-shadow: 0 0 20px var(--neon-red), 0 0 40px var(--neon-red);
}


/* --- Conteneur et Canvas (Styles inchangés) --- */
#game-container {
    width: 606px;
    height: 606px;
    background-color: var(--dark-purple);
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan) inset;
    position: relative;
    overflow: hidden;
}

#game-canvas {
    display: block;
    background-color: var(--dark-purple);
}

/* --- Affichage en Jeu (Styles inchangés) --- */
#target-word-display {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan);
    z-index: 10;
    text-align: right; 
}

#target-word {
    font-size: 1.5em;
    color: var(--neon-red); 
    text-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red);
}

#score-display {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5em;
    text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan);
    z-index: 10;
}

/* --- Écran GAME OVER (Styles inchangés) --- */
#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20;
}

#game-over-text {
    font-size: 5em;
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), 0 0 40px var(--neon-red);
    margin-bottom: 40px;
    letter-spacing: 5px;
}

#replay-button {
    padding: 15px 30px;
    background-color: var(--neon-cyan);
    color: var(--deep-purple);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    transition: all 0.3s ease;
}

#replay-button:hover {
    background-color: white;
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan), 0 0 50px var(--neon-cyan);
}

/* Écran de Victoire (caché) */
#victory-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 30;
}

#victory-text {
    font-size: 4em;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    margin-bottom: 20px;
}

#final-score {
    font-size: 2em;
    color: white;
    margin-bottom: 40px;
}

#next-word-button {
    padding: 15px 30px;
    background-color: var(--neon-green);
    color: var(--deep-purple);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    transition: all 0.3s ease;
}

#next-word-button:hover {
    background-color: white;
    box-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green);
}