
/* LAITNO PREMIUM ANSWER FEEDBACK V63.90 */

:root {
    --lx90-known:#24784c;
    --lx90-forgot:#b84747;
    --lx90-hard:#ad6d21;
    --lx90-mastered:#2869ad;
    --lx90-focus:#2468ac;
}

:root[data-theme-resolved="dark"] {
    --lx90-known:#86d3a5;
    --lx90-forgot:#ffa7a7;
    --lx90-hard:#f6cb83;
    --lx90-mastered:#93c5fd;
    --lx90-focus:#bfdbfe;
}

/* Feedback colors only.
   Existing default button backgrounds remain untouched. */

:root .page .study-answer-grid button.answer-yes {
    --lx90-response:var(--lx90-known);
}

:root .page .study-answer-grid button.answer-no {
    --lx90-response:var(--lx90-forgot);
}

:root .page .study-word-actions-fixed button.soft-danger {
    --lx90-response:var(--lx90-hard);
}

:root .page .study-word-actions-fixed button.soft-success {
    --lx90-response:var(--lx90-mastered);
}

/* Immediate pressed feedback.
   No delayed submission, timers or additional elements. */

:root .page :is(
    .study-answer-grid,
    .study-word-actions-fixed
) button:not(:disabled):not([aria-disabled="true"]):active {
    box-shadow:
        inset 0 0 0 2px var(--lx90-response),
        inset 0 3px 8px rgba(0,0,0,.09);
}

/* Keyboard navigation remains independent of motion. */

:root .page :is(
    .study-answer-grid,
    .study-word-actions-fixed
) button:focus-visible {
    outline:2px solid var(--lx90-focus);
    outline-offset:-3px;
}

/* Subtle desktop-only hover feedback. */

@media (hover:hover) and (pointer:fine) {
    :root .page :is(
        .study-answer-grid,
        .study-word-actions-fixed
    ) button:not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
        box-shadow:
            inset 0 0 0 1px var(--lx90-response);
    }
}

@media (prefers-contrast:more) {
    :root .page :is(
        .study-answer-grid,
        .study-word-actions-fixed
    ) button:focus-visible {
        outline:3px solid currentColor;
    }
}

@media (forced-colors:active) {
    :root .page :is(
        .study-answer-grid,
        .study-word-actions-fixed
    ) button:focus-visible {
        outline:2px solid Highlight;
    }
}
