/* CUIHighlight - mirrors cui_highlight.dart + cui_highlight_painter.dart.
   A one-shot gloss sweep: a solid white bar (46 x 265.292 on Figma's 164px card, scaled by k = width/164), rotated -42.46deg,
   travelling +200 x / -200 y (a true 45deg) over 1000ms with Curves.easeInOut, clipped to the tile's rounded rect and
   composited with BlendMode.softLight, drawn twice (_sweepPasses = 2).
   --_k (px per Figma px) is measured by highlight.js. The sweep element must NOT isolate (no opacity/filter/contain/will-change),
   otherwise the bars blend against nothing instead of the tile underneath. At rest there is no sweep element at all. */
.cui-highlight { position: relative; display: block; width: fit-content; }
.cui-highlight__sweep {
  --_k: 1; --_r: 16; --_dur: 1000; --_bar: #fff;
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  border-radius: calc(var(--_r) * 1px);
}
.cui-highlight__bar {
  position: absolute; left: 0; top: 0; display: block;
  width: calc(var(--_k) * 46px); height: calc(var(--_k) * 265.292px);
  background: var(--_bar); mix-blend-mode: soft-light;
  transform-origin: 50% 50%;
  animation: cui-highlight-sweep calc(var(--_dur) * 1ms / var(--cui-speed, 1)) cubic-bezier(0.42, 0, 0.58, 1) both;
}
/* top-left of the bar box = centre - (w/2, h/2); centre x = (-130 + 200p + 103.195)k, y = (78.978 - 200p + 110.348)k */
@keyframes cui-highlight-sweep {
  from { transform: translate(calc(var(--_k) * -49.805px), calc(var(--_k) * 56.68px)) rotate(-42.46deg); }
  to   { transform: translate(calc(var(--_k) * 150.195px), calc(var(--_k) * -143.32px)) rotate(-42.46deg); }
}
