
/* LAITNO PREMIUM MOBILE EXPERIENCE V63.88 */

:root {
    --lx88-focus:#2468ac;
    --lx88-selection:#dcecff;
    --lx88-selection-ink:#153b64;
}

:root[data-theme-resolved="dark"] {
    --lx88-focus:#93c5fd;
    --lx88-selection:#274970;
    --lx88-selection-ink:#f1f7ff;
}

/* Native-like interaction without changing dimensions. */

html :is(
    .home-hero-cta,
    .home-action-card,
    .home-bottom-nav a,
    .profile-sync-button-v228,
    .group-create-dialog button,
    .fpa-dialog button,
    .social-modal-actions button,
    .study-answer-grid button,
    .study-word-actions-fixed button,
    .study-nav-row button
) {
    touch-action:manipulation;
    -webkit-user-select:none;
    user-select:none;
}

/* Keep ordinary learning content selectable. */

html ::selection {
    background:var(--lx88-selection);
    color:var(--lx88-selection-ink);
}

/* Contain scrolling inside verified scrollable dialogs. */

html :is(
    .group-create-dialog,
    .fpa-dialog-body
) {
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
}

/* Mobile input readability and iOS focus zoom mitigation.
   Study inputs and study layout are deliberately excluded. */

@media (max-width:767px) and (pointer:coarse) {
    html .search-pro-box input,
    html :is(.group-create-dialog,.fpa-dialog)
    :is(
        input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]),
        select,
        textarea
    ) {
        font-size:16px;
    }
}

/* Accessible keyboard focus. */

html :is(
    .home-bottom-nav a,
    .study-answer-grid button,
    .study-word-actions-fixed button,
    .study-nav-row button
):focus-visible {
    outline:2px solid var(--lx88-focus);
    outline-offset:-3px;
}

/* Respect system high-contrast preferences. */

@media (prefers-contrast:more) {
    html :is(
        .home-hero-cta,
        .home-action-card,
        .home-bottom-nav a,
        .profile-sync-button-v228,
        .study-answer-grid button,
        .study-word-actions-fixed button
    ):focus-visible {
        outline:3px solid currentColor;
    }
}

@media (forced-colors:active) {
    html :is(
        .home-hero-cta,
        .home-action-card,
        .home-bottom-nav a,
        .study-answer-grid button,
        .study-word-actions-fixed button
    ):focus-visible {
        outline:2px solid Highlight;
    }
}
