/* ================= LEVEL SELECTION ================= */
#level-select {
    display: block;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

#level-select h3 {
    display: block;
    margin: 20px 0;
}

.mot-code {
    width: fit-content;
    margin: 20px auto 20px auto;
    background: #232323;
    padding: 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
	box-shadow: 0 0 20px #0ff;
}

/* ================= KEYPAD INDICATIF ================= */
#keypad {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

#keypad div {
    width: 60px;
    padding: 10px 0;
    text-align: center;
    background-color: #1F1F1F;
    color: #fff;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

#keypad div strong {
    display: block;
    font-size: 18px;
}

#keypad div span {
    display: block;
    font-size: 12px;
    color: #AAA;
    margin-top: 4px;
}

/* ================= INTERACTIVE KEYBOARD ================= */
#keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

#keyboard button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    justify-content: center;
    display: flex;
}

#keyboard .bouton-rouge {
    background-color: #FF4500;
}

#keyboard button:hover {
    transform: scale(1.1);
}

/* ================= INPUT & VALIDATE ================= */
#answerInput {
    display: block;
    margin: 10px auto;
    padding: 8px 12px;
    width: 220px;
    border-radius: 10px;
    border: 2px solid #1E90FF;
    background: #1F1F1F;
    color: #fff;
    text-align: center;
    font-weight: bold;
}

/* ================= RESULT MESSAGES ================= */
.gratte-result-ok,
.gratte-result-no {
    margin: 10px auto;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    max-width: 400px;
    font-size: 16px;
}

.gratte-result-ok {
    border: 1px dashed lightgreen;
    color: lime;
    background: rgba(0, 128, 0, 0.2);
}

.gratte-result-no {
    border: 1px dashed lightcoral;
    color: red;
    background: rgba(255, 0, 0, 0.2);
}

/* ================= TIMER ================= */
#timer {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #1E90FF;
}

/* ================= INFO SESSION ================= */
.info-session {
    text-align: center;
    margin: 15px 0;
    color: #fff;
    font-weight: bold;
}

.info-session strong {
    color: #1E90FF;
}
