:root {
    color-scheme: dark;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:where(button, input, select, a):focus-visible {
    outline: 3px solid #8ff3be;
    outline-offset: 2px;
}

body.modal-open {
    overflow: hidden;
}

.install-hint {
    max-width: 520px;
    margin: 8px 0 0;
    color: rgba(244, 247, 245, 0.82);
    font-size: 12px;
}

@media (max-width: 760px), (pointer: coarse) {
    :where(button, input, select) {
        min-height: 44px;
    }

    :where(.icon-btn) {
        min-width: 44px !important;
        width: 44px !important;
        height: 44px !important;
    }
}

html.motion-reduced *,
html.motion-reduced *::before,
html.motion-reduced *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
    html:not(.motion-full) *,
    html:not(.motion-full) *::before,
    html:not(.motion-full) *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
