/* UX pack, part C: motion principles (Miguel, 2026-11-24). Numbers: stage/motion-tokens.css.
   Sheets growing from the button, staggered choices, the heart pop, the rubber band,
   the Create wind-up, the result settling and the thumbnail arc run from
   stage/motion-principles.js. This file holds what CSS alone can do. Nothing here
   changes a word, a price or what a button does. */

/* Frequency of use: things people tap many times change at once, with no fade.
   Bottom tabs, style filters, tool categories, inspiration chips, business presets,
   the room, action and style cards, and the hearts (their pop is a separate, one-off
   animation). studio-polish.css fades every button's colour for 150 ms. */
html .native-tabs button,
html .native-categories button,
html #styleGroupFilters button,
html .style-group-filters button,
html #inspirationBrowser .inspo-chips button,
html .business-presets button,
html .visit-reason-options button,
html .visual-card,
html #lookCards [data-look],
html .studio-save,
html .inspo-save,
html .wopt{transition:none!important}

/* Part B's step bar: the fill grows at the base speed, slow at the end. Width and
   transform, so it works whichever of the two the bar uses. */
.ux-progress-fill{transition:width var(--m-base,240ms) var(--m-ease-in,cubic-bezier(.2,.7,.3,1)),transform var(--m-base,240ms) var(--m-ease-in,cubic-bezier(.2,.7,.3,1))}
/* Part B's "Finish your room" card arrives once, rising a little. */
.ux-resume-card{animation:m-rise var(--m-base,240ms) var(--m-ease-in,cubic-bezier(.2,.7,.3,1)) backwards}
@keyframes m-rise{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}

/* The heart pop's tiny burst and the saved-design thumbnail: drawn above everything,
   never take a tap. */
.m-burst{position:fixed;z-index:720;width:0;height:0;pointer-events:none}
.m-burst i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:var(--cobalt,#1A56DB)}
.m-fly{position:fixed;z-index:720;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:12px;object-fit:cover;pointer-events:none;box-shadow:0 8px 22px rgba(20,20,20,.28)}

@media(prefers-reduced-motion:reduce){
  .ux-progress-fill{transition:none}
  .ux-resume-card{animation:none}
  .m-burst,.m-fly{display:none}
}
