body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background: #2b2118;
    color: #f3e6cf;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: #4a3322;
    border-bottom: 3px solid #b8863b;
}

h1 {
    margin: 0;
    font-size: 1.4em;
}

h2 {
    margin: 14px 0 4px 0;
    font-size: 1em;
    color: #e0b060;
}

#chrono {
    font-size: 1.8em;
    font-weight: bold;
    font-family: monospace;
    color: #e0b060;
}

#chrono.urgent {
    color: #ff5555;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 24px;
    justify-content: center;
}

/* ----- Plateau de jeu ----- */

#zone-jeu {
    position: relative;
}

#plateau {
    display: grid;
    gap: 2px;
    background: #1a120c;
    padding: 4px;
    border: 3px solid #b8863b;
}

.case {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-sizing: border-box;
}

.sol {
    background: #e8d5a8;
}

.mur {
    background: #2f6b3a;
}

.moi {
    outline: 3px solid #d63a3a;
    outline-offset: -3px;
    background: #ffe9b0;
}

/* ----- Écran par-dessus le plateau ----- */

#ecran {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 12, 6, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 10;
}

#ecran.noir {
    background: #000;
    font-size: 1.6em;
}

#ecran-texte {
    max-width: 400px;
    font-size: 1.1em;
}

/* ----- Panneau d'informations ----- */

#panneau {
    width: 320px;
}

#panneau p {
    margin: 0;
}

#info {
    margin-top: 10px;
    color: #9fd89f;
}

#retour {
    margin-top: 6px;
    min-height: 1.2em;
    color: #ffb070;
}

button {
    margin-top: 10px;
    padding: 10px 18px;
    font-size: 1em;
    font-family: inherit;
    background: #b8863b;
    color: #1a120c;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:disabled {
    background: #6b5a45;
    color: #a89880;
    cursor: default;
}

.aide {
    font-size: 0.85em;
    color: #cdbb9a;
}

footer {
    display: flex;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.8em;
    color: #8a7860;
    
}
