/* --- VARIABLES DE STYLE --- */
:root {
    --fond-sombre: #0d0e15;
    --fond-container: #1a1c28;
    --bordure-neon: #ff007f;
    --bordure-canvas: #00ffaa;
    --police-retro: 'Press Start 2P', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- MISE EN PAGE GLOBALE --- */
body, html {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--fond-sombre);
    /* Léger dégradé radial pour un effet de lumière rétro au centre */
    background: radial-gradient(circle, #25163a 0%, #0d0e15 100%);
    overflow: hidden;
    font-family: var(--police-retro);
}

/* --- CONTENEUR DU JEU --- */
.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: var(--fond-container);
    border: 4px solid var(--bordure-neon);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
}

/* --- ÉCRAN DE DÉMARRAGE --- */
#start-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

#victory-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    text-align: center;
    background: radial-gradient(circle, rgba(35, 20, 52, 0.55) 0%, rgba(8, 8, 12, 0.85) 100%);
}

/* Titre principal avec dégradé Néon */
#start-screen h1,
#victory-screen h1 {
    font-size: 2.5rem;
    text-align: center;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ff007f, #ffaa00, #00ffaa, #007fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.5));
}

/* Sous-titre */
#start-screen h4,
#victory-screen h4 {
    font-size: 0.9rem;
    color: #ffffff;
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 0 5px #00ffaa;
}

#victory-score {
    color: #00ffaa;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.75);
}

/* Animation clignotante pour le texte "Appuyez sur Y" */
.blink {
    animation: clignotement 1.2s infinite;
}

@keyframes clignotement {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* --- CANVAS DU JEU --- */
#game-board {
    display: none; /* Caché par défaut au chargement */
    width: 100%;  /* Largeur fixe à l'écran */
    height: 100%; /* Hauteur fixe à l'écran */
    background-color: #000000;
    border: 5px solid var(--bordure);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* --- ETATS DES ÉCRANS (Géré par JS) --- */
