/* LAITNO_PREMIUM_STUDY_UX02 */

:root {
    --lx75-ease: cubic-bezier(.22,1,.36,1);
    --lx75-fast: 140ms;
    --lx75-normal: 240ms;
}

/* Answer controls */

:root :is(.study-answer-grid,.study-word-actions,.study-nav-row) button,
:root .study-flip-scene .word-audio-btn {
    transition:
        scale var(--lx75-fast) var(--lx75-ease),
        background-color var(--lx75-normal) ease,
        color var(--lx75-fast) ease,
        box-shadow var(--lx75-normal) ease;
}

:root .study-answer-grid button {
    position: relative;
    font-weight: 800;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.06);
}

@supports (scale: 1) {
    :root :is(.study-answer-grid,.study-word-actions,.study-nav-row)
    button:not(:disabled):not([aria-disabled=true]):active,
    :root .study-flip-scene
    .word-audio-btn:not(:disabled):active {
        scale: .96;
    }
}

@media (hover:hover) and (pointer:fine) {
    :root .study-answer-grid button:not(:disabled):hover {
        box-shadow:
            inset 0 -2px 0 rgba(0,0,0,.06),
            0 4px 12px rgba(0,0,0,.08);
    }
}

:root .study-answer-grid button.answer-yes:active {
    box-shadow: inset 0 0 0 2px currentColor;
}

:root .study-answer-grid button.answer-no:active {
    box-shadow: inset 0 0 0 2px currentColor;
}

/* Card typography */

:root .study-flip-scene :is(
    .word-title-line,
    .study-back-word-main,
    .study-back-meaning
) {
    overflow-wrap: anywhere;
}

:root .study-flip-scene .study-back-meaning {
    text-wrap: pretty;
}

/* Session progress */

:root .session-track > :is(div,span,i) {
    transition:
        width 300ms var(--lx75-ease),
        inline-size 300ms var(--lx75-ease);
}

/* Session completion */

:root :is(
    .study-summary-score,
    .study-summary-xp,
    .study-summary-stats,
    .review-summary-score
) :is(strong,b) {
    font-variant-numeric: tabular-nums;
}

:root .study-summary-xp strong {
    font-size: 22px;
    font-weight: 800;
}

:root :is(
    .study-summary-score,
    .study-summary-xp,
    .review-summary-score > div
) {
    border: 1px solid rgba(128,148,165,.15);
}

:root :is(.study-answer-grid,.study-word-actions,.study-nav-row)
button:focus-visible,
:root .study-flip-scene .word-audio-btn:focus-visible {
    outline: 2px solid var(--lx74-focus,#468bc8);
    outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
    :root :is(.study-answer-grid,.study-word-actions,.study-nav-row) button,
    :root .study-flip-scene .word-audio-btn,
    :root .session-track > :is(div,span,i) {
        scale: none !important;
        transition: none !important;
    }
}
