/* ── Colorblind-friendly palette (deuteranopia) ─────────────────────────── */
[data-colorblind="true"] {
    --red: #d55e00;
    --red-dark: #a04700;
    --green: #009e73;
    --green-dark: #006b4f;
    --gold: #f0e442;
    --gold-dark: #c4b800;
    --blue: #0072b2;
    --hp-high: #009e73;
    --hp-mid: #f0e442;
    --hp-low: #d55e00;
}

/* Correct / wrong answers: use shapes + patterns in addition to color */
[data-colorblind="true"] button.correct {
    background: #009e73 !important;
    border-color: #006b4f !important;
    outline: 3px solid #fff;
    outline-offset: -3px;
}

[data-colorblind="true"] button.wrong {
    background: #d55e00 !important;
    border-color: #a04700 !important;
    text-decoration: line-through;
}

[data-colorblind="true"] .answer-input-box.answer-correct {
    border-color: #009e73 !important;
    box-shadow: 0 0 0 3px rgba(0, 158, 115, 0.4) !important;
}

[data-colorblind="true"] .answer-input-box.answer-wrong {
    border-color: #d55e00 !important;
    box-shadow: 0 0 0 3px rgba(213, 94, 0, 0.4) !important;
}

/* Timer bar */
[data-colorblind="true"] #timerFill {
    background: linear-gradient(90deg, #0072b2, #56b4e9) !important;
}

[data-colorblind="true"] #timerFill.timer-warning {
    background: linear-gradient(90deg, #d55e00, #e69f00) !important;
}

/* Pokedex items */
[data-colorblind="true"] .pokedex-item.discovered {
    border-color: #009e73 !important;
}

[data-colorblind="true"] .pokedex-item.discovered.shiny {
    border-color: #f0e442 !important;
}

/* Achievement unlocked */
[data-colorblind="true"] .ach-item.unlocked {
    border-color: #0072b2 !important;
}

/* Toast colors */
[data-colorblind="true"] .toast.toast-success {
    border-left-color: #009e73 !important;
}

[data-colorblind="true"] .toast.toast-error {
    border-left-color: #d55e00 !important;
}
