html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Cinzel", serif;
    text-align: center;
    background: url("viking_bg.png") center/cover fixed; 
    color: #e6d8a3;
    user-select: none;
}

h1 {
    margin-top: 20px;
    color: #00B0F0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}


.menu {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    height: 80vh;
    overflow-y: auto;
}

button, .btn, .back {
    padding: 15px 30px;
    font-size: 22px;
    min-width: 250px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #00B0F0;
    border: 2px solid #00B0F0;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Cinzel", serif;
}

button:hover, .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 176, 240, 0.6);
    background: #00B0F0;
    color: #000;
}

/* --- ZONE DE JEU --- */
#gameArea {
    width: 900px;
    height: 500px;
    margin: 20px auto;
    /* Image de fond du jeu et Curseur Hache */
    background: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), 
                url("image_de_fond.png") center/cover;
    position: relative;
    border: 3px solid #555;
    box-shadow: 0 0 30px black;
    cursor: url("hache.png") 16 16, auto; /* Curseur Hache */
    overflow: hidden;
}

/* HUD (Score, Temps...) */
.hud-top {
    width: 900px;
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 5px black;
    background: rgba(0,0,0,0.6);
    padding: 10px;
    border-radius: 10px;
}

/* --- SPÉCIFIQUE MODE 2 (CLAVIER) --- */
#wordRow {
    /* Image du parchemin */
    background: url("parchemin.png") center/cover no-repeat;
    width: 500px;
    height: 150px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff; /* Couleur texte sur parchemin (marron foncé) */
    text-shadow: none;
    padding-bottom: 10px; 
}

#word {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 5px;
}

#preview {
    font-size: 20px;
    opacity: 0.8;
    color: #ffffff;
}

#inputWord {
    font-size: 30px;
    padding: 10px;
    text-align: center;
    width: 400px;
    border-radius: 5px;
    border: 2px solid #00B0F0;
    background: rgba(255, 255, 255, 0.9);
    font-family: sans-serif; 
}


.target {
    width: 80px;
    height: 80px;
    background: url("cible.png") center/cover;
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    font-size: 20px;
    text-shadow: 0 0 3px black;
}

/* Cibles spécifiques Mode 3 */
.chaos-good { filter: hue-rotate(90deg); } /* Vert */
.chaos-bad { filter: hue-rotate(0deg) saturate(3); } /* Rouge */
.chaos-bonus { filter: hue-rotate(45deg) brightness(1.5); } /* Or */


.hidden { display: none; }
.settings-group { background: rgba(0,0,0,0.7); padding: 10px; border-radius: 10px; margin-bottom: 10px; }
.difficultyBtn.selected { background: #00B0F0; color: black; }


#musicToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 15px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffd700;
    border: 2px solid #ffd700;
    border-radius: 50px;
    min-width: auto;
}
#musicToggle:hover {
    background: #ffd700;
    color: black;
}

.rule-card {
            background-color: rgba(0, 0, 0, 0.85);
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        }