/* ==========================================
   MicroChess — Exercise Pages (Shared)
   ========================================== */

/* --- Header --- */
.exercise-header {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.exercise-header__title {
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.exercise-header__icon {
    margin-left: var(--space-xs);
}

/* --- Instruction --- */
#instruction {
    line-height: 1.8;
}

#instruction small {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.instruction-highlight--orange { color: var(--color-orange); }
.instruction-highlight--red    { color: var(--color-danger); }
.instruction-highlight--green  { color: var(--color-success); }

/* --- Score Counter --- */
.exercise-score {
    text-align: center;
    margin: var(--space-sm) 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.exercise-score__count {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.05rem;
}

.exercise-score__streak {
    color: var(--color-warning);
    font-weight: 700;
}

/* --- Action Buttons --- */
.exercise-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

/* --- Choice Buttons (Balance, Checkmate) --- */
.exercise-choices {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.exercise-choices .btn {
    min-width: 140px;
    padding: 14px 24px;
}

/* --- Result --- */
.exercise-result {
    display: flex;
    justify-content: center;
}

.exercise-result .alert {
    min-width: 280px;
    max-width: 500px;
    text-align: center;
}

/* --- Value Reference --- */
.value-reference {
    max-width: 400px;
    margin: 0 auto var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.8;
    direction: ltr;
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .exercise-header__title {
        font-size: 1.15rem;
    }

    .exercise-choices .btn {
        min-width: 110px;
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}