/* Standalone "attention ring" animation.
   Loaded directly via <link> in App.razor — NOT processed by Tailwind, whose
   v4 build was stripping `animation`, `mask`, `mask-composite` and the
   reduced-motion query from the source app.css. Keep this file plain CSS. */

@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes ring-rotate {
  to { --ring-angle: 360deg; }
}

.attention-ring {
  position: relative;
  isolation: isolate;
}

.attention-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--ring-angle),
    rgba(217, 178, 122, 0) 0deg,
    rgba(217, 178, 122, 0) 200deg,
    rgba(217, 178, 122, 0.7) 290deg,
    #f2d396 335deg,
    rgba(217, 178, 122, 0) 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: ring-rotate 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .attention-ring::before { animation: none; }
}
