body.chicken {
    background-color: #f9f9f0;
}

body.beginner {
    background-color: #f0efe6;
}

body.easy {
    background-color: #e5e0c8;
}

body.medium {
    background-color: #e6ddaa;
}

body.hard {
    background-color: #a59b66;
    color: #ffffff;
}

body.veteran {
    background-color: #938b56;
    color: #ffffff;
}

body.hardcore {
    background-color: #3c3826;
    color: #ffffff;
}

body.nightmare {
    background-color: #18160f;
    color: #ffffff;
}


.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-dark {
    border-radius: 30px;
    padding: 0.5em 1em;
}

.btn-outline-danger,
.btn-outline-warning,
.btn-outline-success,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark {
    color: #000 !important;
    border-color: currentColor;
}

.btn-check:checked + .btn-outline-danger,
.btn-check:checked + .btn-outline-warning,
.btn-check:checked + .btn-outline-success,
.btn-check:checked + .btn-outline-primary,
.btn-check:checked + .btn-outline-secondary,
.btn-check:checked + .btn-outline-dark {
    background-color: currentColor;
    color: #000 !important;
    border-color: currentColor;
}

.btn-check + .btn {
    text-align: left;
    padding-left: 1.5rem;
    width: 100%;
}

pre code {
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 6px;
}


@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5em;
    }

    .d-flex.flex-wrap.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}


.template-select {
    font-family: monospace;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre;
}

.template-select option {
    padding: 4px 8px;
    white-space: pre-wrap;
    line-height: 1.3;
}

/* ────────────── Piste de progression ────────────── */

.piste-cell {
    position: relative;
    width: 100%;
    height: 60px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.niveau-label {
    font-weight: bold;
}

/* ────────────── Jetons (pions) ────────────── */

.pion {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    line-height: 36px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    cursor: grab;
}

/* Couleurs différentes par équipe */
.pion-equipe-0 {
    background-color: #dc3545; /* rouge */
}
.pion-equipe-1 {
    background-color: #198754; /* vert */
}
.pion-equipe-2 {
    background-color: #0d6efd; /* bleu */
}

/* ────────────── Contrôles flèches ────────────── */

.piste-cell .controls {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.piste-cell .controls button {
    padding: 2px 4px;
    font-size: 0.8rem;
    line-height: 1;
}

#piste-drag * {
    user-select: none;
}

.pion {
    user-select: auto;
}


.drop-ok {
    background-color: #d1e7dd !important;
}

.drop-blocked {
    background-color: #f8d7da !important;
}


.piste-cell[data-niveau="NIGHTMARE"] {
    background-color: #1f1c12;
    color: #fff;
}
.piste-cell[data-niveau="HARDCORE"] {
    background-color: #4a4328;
    color: #fff;
}
.piste-cell[data-niveau="VETERAN"] {
    background-color: #9a8e56;
    color: #fff;
}
.piste-cell[data-niveau="HARD"] {
    background-color: #9b8f54;
    color: #fff;
}
.piste-cell[data-niveau="MEDIUM"] {
    background-color: #cfc59c;
    color: #000;
}
.piste-cell[data-niveau="EASY"] {
    background-color: #cdc29c;
    color: #000;
}
.piste-cell[data-niveau="BEGINNER"] {
    background-color: #d8d1b4;
    color: #000;
}
.piste-cell[data-niveau="CHICKEN"] {
    background-color: #dcd6bc;
    color: #000;
}
