/* Shared button feel for every page of the site (load it LAST in <head>).
   Hover: the button lifts up and to the right a little and glows softly. Press: it settles and closes in.
   Add data-lift to any other control that should behave this way. Never put these classes on a picture. */
.btn,.ctl,.back,.vb,.vbtn,.b,.pz,.pzm,.play,.go,.fb,.ghost,.sm,.wallink,.pagelink,.wread,[data-lift]{
  transition:transform .16s cubic-bezier(.2,.7,.2,1),box-shadow .16s ease-out,color .15s ease-out,border-color .15s ease-out,background-color .15s ease-out;
}
@media (hover:hover){
  .btn:not(:disabled):hover,.ctl:not(:disabled):hover,.back:not(:disabled):hover,.vb:not(:disabled):hover,.vbtn:not(:disabled):hover,
  .b:not(:disabled):hover,.pz:not(:disabled):hover,.pzm:not(:disabled):hover,.play:not(:disabled):hover,.go:not(:disabled):hover,
  .fb:not(:disabled):hover,.ghost:not(:disabled):hover,.sm:not(:disabled):hover,.wallink:hover,.pagelink:hover,.wread:hover,[data-lift]:hover{
    transform:translate(2px,-2px);
    box-shadow:var(--glow,0 0 0 1px rgba(127,227,212,.38),0 6px 18px rgba(127,227,212,.2),0 0 22px rgba(127,227,212,.12));
  }
  /* gold controls glow gold */
  .back:not(:disabled):hover,.gold:not(:disabled):hover,[data-lift="gold"]:hover{
    box-shadow:var(--glow-gold,0 0 0 1px rgba(255,178,74,.55),0 6px 18px rgba(255,178,74,.22),0 0 22px rgba(255,178,74,.14));
  }
}
.btn:not(:disabled):active,.ctl:not(:disabled):active,.back:not(:disabled):active,.vb:not(:disabled):active,.vbtn:not(:disabled):active,
.b:not(:disabled):active,.pz:not(:disabled):active,.pzm:not(:disabled):active,.play:not(:disabled):active,.go:not(:disabled):active,
.fb:not(:disabled):active,.ghost:not(:disabled):active,.sm:not(:disabled):active,[data-lift]:active{
  transform:translate(0,0) scale(.96);
}
/* Reduced motion (the bible's one rule): nothing moves or fades; the glow and colors change at once. Scoped to these controls
   so this shared file does not reach anything else on a page. */
@media (prefers-reduced-motion:reduce){
  .btn,.ctl,.back,.vb,.vbtn,.b,.pz,.pzm,.play,.go,.fb,.ghost,.sm,.wallink,.pagelink,.wread,[data-lift]{transition:none!important;animation:none!important}
  .btn:hover,.ctl:hover,.back:hover,.vb:hover,.vbtn:hover,.b:hover,.pz:hover,.pzm:hover,.play:hover,.go:hover,.fb:hover,.ghost:hover,.sm:hover,.wallink:hover,.pagelink:hover,.wread:hover,[data-lift]:hover{transform:none}
  /* the same, as specific as the lift rule above, so the lift really is off (it used to win and jump into place) */
  .btn:not(:disabled):hover,.ctl:not(:disabled):hover,.back:not(:disabled):hover,.vb:not(:disabled):hover,.vbtn:not(:disabled):hover,
  .b:not(:disabled):hover,.pz:not(:disabled):hover,.pzm:not(:disabled):hover,.play:not(:disabled):hover,.go:not(:disabled):hover,
  .fb:not(:disabled):hover,.ghost:not(:disabled):hover,.sm:not(:disabled):hover{transform:none}
  /* the press still shows (a change of state, at once), as before */
  .btn:not(:disabled):active,.ctl:not(:disabled):active,.back:not(:disabled):active,.vb:not(:disabled):active,.vbtn:not(:disabled):active,
  .b:not(:disabled):active,.pz:not(:disabled):active,.pzm:not(:disabled):active,.play:not(:disabled):active,.go:not(:disabled):active,
  .fb:not(:disabled):active,.ghost:not(:disabled):active,.sm:not(:disabled):active,[data-lift]:active{transform:translate(0,0) scale(.96)}
}

/* Phones: two quick taps on a control or inside a menu panel are two taps, never Safari's double-tap zoom (seen in the
   iPhone simulator, 2026-11-26: MENU then CLOSE in quick succession zoomed the page instead). Pinch zoom is untouched. */
a,button,[role=button],summary,label,.mm-menu,.menu{touch-action:manipulation}
