/* 12-in-12 Challenge: tactile buttons and the "I did it" moment.
   The rest of the app keeps transitions under 150 ms. The I did it chain is the one exception, about 900 ms in total,
   and it is skipped under reduced motion. No sound, no vibration, no gradients. */

/* Tactile buttons, the same feel as the TSA apps. On hover a button lifts 2 px. On press it drops 4 px.
   The move uses the translate property, so rotated stamps and cards keep their tilt. Quick, and off for disabled buttons.
   Where there is no hover (touch), only the press shows. Reduced motion keeps the colour change and drops the move. */
button.btn,button.big,button.quiet,button.preset,button.tile,button.opt,button.chip,button.mt,button.cm-card,.tabs button,.pager button,.nav button,.hdr-about,.bell{translate:0 0;transition:translate .12s ease,background .15s ease,border-color .15s ease,color .15s ease}
@media(hover:hover){
  button.btn:hover:not(:disabled):not([aria-disabled="true"]),button.big:hover:not(:disabled),button.quiet:hover:not(:disabled),button.preset:hover:not(:disabled),button.tile:hover:not(:disabled),button.opt:hover:not(:disabled),button.chip:hover:not(:disabled),button.mt:hover:not(:disabled),button.cm-card:hover:not(:disabled),.tabs button:hover:not(:disabled),.pager button:hover:not(:disabled),.nav button:hover:not(:disabled),.hdr-about:hover,.bell:hover{translate:0 -2px}
  button.btn.navy:hover:not(:disabled){background:#0B4A83;border-color:#0B4A83}
}
button.btn:active:not(:disabled):not([aria-disabled="true"]),button.big:active:not(:disabled),button.quiet:active:not(:disabled),button.preset:active:not(:disabled),button.tile:active:not(:disabled),button.opt:active:not(:disabled),button.chip:active:not(:disabled),button.mt:active:not(:disabled),button.cm-card:active:not(:disabled),.tabs button:active:not(:disabled),.pager button:active:not(:disabled),.nav button:active:not(:disabled),.hdr-about:active,.bell:active{translate:0 4px}
button.btn.navy:active:not(:disabled){background:#002A55;border-color:#002A55}
button:disabled,button[aria-disabled="true"]{translate:0 0}

/* The I did it chain */
.stamped{position:relative;overflow:hidden}
.roll{position:relative;display:inline-block;vertical-align:bottom}
.rx-new{display:inline-block}
.rx-old{position:absolute;left:0;top:0}
.rx-sweep{position:absolute;top:-10%;bottom:-10%;left:0;width:34px;background:rgba(255,255,255,.5);pointer-events:none}
.rx-ring{position:absolute;border:3px solid var(--navy);border-radius:var(--stamp-r);opacity:0;pointer-events:none}
.rx-fill{position:absolute;inset:0;background:var(--gold);transform-origin:left;display:block}
.ticks i{overflow:hidden}
.rx-ghost{position:fixed;z-index:40;margin:0;display:grid;place-items:center;border-radius:var(--stamp-r);background:var(--navy);color:var(--gold);pointer-events:none}
.rx-ghost svg{width:55%;height:55%}

@media(prefers-reduced-motion:reduce){
  button.btn,button.big,button.quiet,button.preset,button.tile,button.opt,button.chip,button.mt,button.cm-card,.tabs button,.pager button,.nav button,.hdr-about,.bell{transition:background .15s ease,border-color .15s ease,color .15s ease}
  button.btn:hover,button.btn:active,button.big:hover,button.big:active,button.quiet:hover,button.quiet:active,button.preset:hover,button.preset:active,button.tile:hover,button.tile:active,button.opt:hover,button.opt:active,button.chip:hover,button.chip:active,button.mt:hover,button.mt:active,button.cm-card:hover,button.cm-card:active,.tabs button:hover,.tabs button:active,.pager button:hover,.pager button:active,.nav button:hover,.nav button:active,.hdr-about:hover,.hdr-about:active,.bell:hover,.bell:active{translate:0 0}
}
