:root {
    --neon-green: #39ff14;
    --neon-pink: #ff00ff;
    --bg-color: #111;
}

body {
    background-color: black;
    color: var(--neon-green);
    font-family: 'Press Start 2P', cursive; /* Police rétro */
    margin: 0;
    overflow: hidden; /* Empêche le scroll */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Gestion des Écrans (Transitions fluides) --- */
.screen {
    text-align: center;
    width: 80%;
    max-width: 800px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none; /* Caché par défaut */
}

.screen.active {
    display: block;
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* --- Typographie & Effets --- */
h1.neon-text {
    font-size: 3rem;
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink);
    margin-bottom: 50px;
}

.flicker {
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.4; }
}

.blink {
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Boutons Rétro --- */
.btn-retro, .btn-select {
    background: transparent;
    border: 4px solid var(--neon-green);
    color: var(--neon-green);
    font-family: 'Press Start 2P', cursive;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.2s;
}

.btn-retro:hover, .btn-select:hover {
    background: var(--neon-green);
    color: black;
    box-shadow: 0 0 15px var(--neon-green);
}

/* --- Sélection Personnages --- */
.char-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 40px;
}

.char-card {
    border: 2px dashed var(--neon-green);
    padding: 20px;
    width: 45%;
}

.pixel-art-placeholder {
    height: 100px;
    background: #222;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #555;
}

/* --- Scanlines (Effet TV cathodique) --- */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    pointer-events: none; /* Laisse passer les clics */
    z-index: 999;
}