/* General's Pact button interactions v1
   Reference: gold/outline CTAs on the home hero.
   Applies to actual action buttons and .btn links across home and catalog; modal .dialog-close buttons are excluded to preserve their absolute positioning. */
:is(.btn, button):not(:disabled):not(.dialog-close) {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  transition:
    transform .38s cubic-bezier(.22,1,.36,1),
    box-shadow .38s ease,
    filter .34s ease,
    border-color .34s ease,
    background-color .34s ease,
    color .34s ease;
}
/* Soft passing highlight, shared even by outline and filter buttons. */
:is(.btn, button):not(:disabled):not(.dialog-close)::after {
  content:"";
  position:absolute;
  z-index:1;
  inset:-60% auto -60% -52%;
  width:35%;
  transform:skewX(-24deg) translateX(0);
  pointer-events:none;
  opacity:0;
  background:linear-gradient(90deg,transparent,#fff5d455,transparent);
  transition:transform .7s cubic-bezier(.22,1,.36,1),opacity .32s ease;
}
@media (hover:hover) and (pointer:fine) {
  :is(.btn, button):not(:disabled):not(.dialog-close):hover {
    transform:translateY(-3px);
    box-shadow:0 12px 25px #0006,0 0 20px #dfb77330;
    filter:brightness(1.07);
  }
  :is(.btn, button):not(:disabled):not(.dialog-close):hover::after {
    transform:skewX(-24deg) translateX(430%);
    opacity:1;
  }
}
/* Keyboard navigation receives an equivalent stable highlight, without motion. */
:is(.btn, button):not(.dialog-close):focus-visible {
  outline:2px solid #f1ce89;
  outline-offset:3px;
  box-shadow:0 0 0 3px #0b1018,0 0 18px #e0b56a66;
}
:is(.btn, button):not(.dialog-close):disabled{cursor:not-allowed;opacity:.55}
/* Handheld devices should not retain sticky hover effects after tapping. */
@media (hover:none) {
  :is(.btn, button):not(.dialog-close):hover{transform:none;filter:none}
  :is(.btn, button):not(.dialog-close)::after{display:none}
}
@media (prefers-reduced-motion:reduce) {
  :is(.btn, button),:is(.btn, button):not(.dialog-close)::after {transition:none!important}
  :is(.btn, button):not(.dialog-close):hover{transform:none!important}
  :is(.btn, button):not(.dialog-close):hover::after{opacity:0}
}
