/* =========================================================
   GTAM FAST INTERACTION V1
   iOS / Android / Browser / WebView
   ========================================================= */

/*
 * Remove unnecessary mobile click delay and keep touch response direct.
 */
button,
a,
[role="button"],
[data-action],
[data-close],
.setting-row,
.nav-btn,
.icon-btn,
.back-btn,
.close-btn,
.bottom-nav button,
.bottom-nav a,
.auth-back,
.auth-language,
.auth-primary,
.auth-bottom button,
.method,
.copy-btn,
.secondary-btn,
.all-btn,
.quick-amounts button,
.period-grid button,
.intervals button{
    touch-action:manipulation !important;
    -webkit-tap-highlight-color:transparent !important;
    -webkit-user-select:none;
    user-select:none;
}

/*
 * Existing UI transitions are sometimes too long.
 * Keep only a very short tactile response.
 */
button,
a,
[role="button"],
[data-action],
[data-close],
.setting-row,
.nav-btn,
.icon-btn,
.back-btn,
.close-btn,
.bottom-nav button,
.bottom-nav a,
.auth-back,
.auth-language,
.auth-primary,
.auth-bottom button{
    transition-duration:.07s !important;
    transition-delay:0s !important;
}

/* Immediate physical response */
button:active,
a:active,
[role="button"]:active,
[data-action]:active,
[data-close]:active,
.setting-row:active,
.nav-btn:active,
.icon-btn:active,
.back-btn:active,
.close-btn:active,
.bottom-nav button:active,
.bottom-nav a:active{
    transform:scale(.985);
    filter:brightness(1.08);
}

/*
 * JS pointer/touch feedback.
 * Does not replace or duplicate the existing click handler.
 */
.gtam-fast-pressed{
    transform:scale(.985) !important;
    filter:brightness(1.08) !important;
    transition-duration:.04s !important;
}

/*
 * Avoid animated smooth scrolling making page changes feel sluggish.
 */
html{
    scroll-behavior:auto !important;
}

/*
 * Preserve native scrolling performance.
 */
body,
.page,
.page-content,
.main-content,
.standalone-feature-page{
    -webkit-overflow-scrolling:touch;
}

/*
 * Faster visual response for navigation.
 */
.bottom-nav .nav-btn,
.bottom-nav a,
.bottom-nav button{
    will-change:transform;
}

/*
 * Do not animate disabled/loading controls slowly.
 */
button:disabled,
[aria-disabled="true"]{
    transition-duration:.04s !important;
}

