/* One set of interaction states for every menu control (VG-725; menu UX research E11, E12 and the 26 Nov launch cut).
   Press: press-states.js sets data-press on pointer presses (and flashes it for keyboard and pad); the control scales to
   0.97 in 80 ms and springs back in 140 ms. Focus is a ring only, for keyboard and pad. Selected (aria-pressed) owns the
   1.04 scale and the fill. Hover exists only where the device really hovers. Reduced motion drops every scale. */
:root{--ga-press-scale:.97;--ga-press-in:80ms;--ga-press-out:140ms;--ga-select-scale:1.04;--ga-select-line:#ffc93c;
  --ga-select-fill:#36545a;--ga-ring:#ffc93c;--ga-ring-gap:#1c1a24;--ga-spring:cubic-bezier(.3,1.6,.5,1)}
:is(.ga-screen,.fam-dialog) :is(button,a[href],summary){transition:transform var(--ga-press-out) var(--ga-spring),
  filter 120ms ease,background-color 120ms ease,border-color 120ms ease,opacity 160ms ease;-webkit-tap-highlight-color:transparent;
  -webkit-touch-callout:none;touch-action:manipulation}
/* The hero turns on a sideways drag (VG-670), so it keeps its own pan-y. */
.ga-screen button.ga-hero{touch-action:pan-y}
:is(.ga-screen,.fam-dialog) :is(button,a[href],summary)[data-press]{transform:scale(var(--ga-press-scale));
  filter:brightness(.92);transition-duration:var(--ga-press-in)}
/* Selected: one look for picked cards, rows and chips (fighters, modes, languages, bot difficulty, family faces). */
:is(.ga-screen,.fam-dialog) [aria-pressed=true]:is(button,[role="button"]){transform:scale(var(--ga-select-scale));
  border-color:var(--ga-select-line);background-color:var(--ga-select-fill)}
:is(.ga-screen,.fam-dialog) [aria-pressed=true]:is(button,[role="button"])[data-press]{
  transform:scale(calc(var(--ga-select-scale) * var(--ga-press-scale)))}
/* Focus: a ring and nothing else (no scale, no fill), for keyboard and pad only. */
:is(.ga-screen,.fam-dialog) :focus-visible,.ga-screen[data-nav] :focus{outline:3px solid var(--ga-ring);outline-offset:2px;
  box-shadow:0 0 0 2px var(--ga-ring-gap)}
:is(.ga-screen,.fam-dialog) :focus:not(:focus-visible){outline:none}
/* Hover: mouse and trackpad only; a touch screen never shows a stuck hover. */
@media(hover:hover) and (pointer:fine){
  :is(.ga-screen,.fam-dialog) :is(button,a[href],summary):hover:not([data-press]):not(:disabled){filter:brightness(1.06)}
}
@media(prefers-reduced-motion:reduce){
  :is(.ga-screen,.fam-dialog) :is(button,a[href],summary),
  :is(.ga-screen,.fam-dialog) :is(button,a[href],summary)[data-press],
  :is(.ga-screen,.fam-dialog) [aria-pressed=true]:is(button,[role="button"]){transform:none;transition:filter 80ms,background-color 80ms}
}
/* Scrolling inside a sheet or list never pulls the page or the browser's refresh behind it. */
.ga-screen .ga-sheet,.ga-screen [data-sheet-body],.ga-screen .ga-choices,.ga-screen .ga-panel,.fam-overlay,.fam-dialog{
  overscroll-behavior:contain}
