@import url('/reel/assets/interface-theme.css');

:root {
  --button-press-distance: 3px;
  --button-press-time: 100ms;
  --button-color-time: 160ms;
  --button-transition: translate var(--button-press-time) ease, box-shadow var(--button-color-time) ease,
    background-color var(--button-color-time) ease, color var(--button-color-time) ease;
}

:where(button, input:is([type=button], [type=submit], [type=reset]), summary, [role=button],
       .top-nav a, a:is(.button, .icon-button, .primary-button, .text-button, .hero-cta, .wallet-shortcut, .player-icon, .feature-card, .wordmark[href]), .fair-page-header > a:first-child) {
  -webkit-tap-highlight-color: transparent;
  transition: var(--button-transition);
}

:where(select) { -webkit-tap-highlight-color: transparent; }

:where(button, input:is([type=button], [type=submit], [type=reset]), summary, [role=button],
       .top-nav a, a:is(.button, .icon-button, .primary-button, .text-button, .hero-cta, .wallet-shortcut, .player-icon, .feature-card, .wordmark[href]), .fair-page-header > a:first-child):not(:disabled, [aria-disabled=true], .is-disabled, .disabled)[data-button-pressed] {
  translate: 0 var(--button-press-distance);
  /* The raised base lines up in the resting and held positions. */
  --ui-button-shadow: 0 1px 0 var(--ui-depth);
  --ui-primary-shadow: 0 1px 0 var(--ui-action-depth);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --button-press-time: 0ms;
    --button-color-time: 0ms;
  }
}
