/* gem-holo.css: GemHolo (@gemboss/ui, gem-holo.tsx). Its own entry: the component imports it.
   The four gems as light: sapphire, emerald, amber, ruby, lighter than their tokens because they glow on any ground. The
   shape breathes (border-radius), the light turns (transform): nothing here runs script or repaints a canvas. */
.ui-holo {
  --ui-holo-size: 32px;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--ui-holo-size);
  height: var(--ui-holo-size);
  isolation: isolate;
  vertical-align: middle;
  background: none; /* over chat.css' fallback dot for a page without this sheet */
}
/* The chat's heartbeat (<GemHolo className="gemboss-ec-pending-star">, chat-plain.js), 12/11/2026: 14px from this sheet, so a page
   CSP that refuses inline styles (gemcare's inbox) cannot leave it at 32px, server-rendered React included; and the hologram moves
   by itself, so the old star's pulse (chat.css: scale and fade) is off on it. Here, not in chat.css: chat.css rides in
   gemboss-ui.css, frozen at its ceiling (#7254). A page without this sheet keeps chat.css' fallback dot. */
.ui-holo.gemboss-ec-pending-star { --ui-holo-size: 14px; animation: none; }
.ui-holo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: conic-gradient(from 0deg, #8b93ff, #4fe0b4, #ffc861, #ff7a9c, #8b93ff);
  filter: blur(calc(var(--ui-holo-size) * 0.08)) saturate(1.3);
  animation: ui-holo-morph 9s ease-in-out infinite, ui-holo-turn 14s linear infinite;
}
.ui-holo::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 46%);
  mix-blend-mode: screen;
  animation: ui-holo-morph 9s ease-in-out infinite reverse;
}
.ui-holo > svg { position: absolute; inset: 22%; z-index: 1; width: 56%; height: 56%; }
.ui-holo--busy::before { animation-duration: 3s, 5s; }
@keyframes ui-holo-morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33% { border-radius: 63% 37% 38% 62% / 55% 62% 38% 45%; }
  66% { border-radius: 38% 62% 56% 44% / 63% 37% 63% 37%; }
}
@keyframes ui-holo-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ui-holo::before, .ui-holo::after { animation: none; }
}
