.aiva-emblem-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  background: radial-gradient(ellipse at 50% 47%, #e1e5e9, transparent 70%);
}
.aiva-emblem-stage::before,
.aiva-emblem-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.aiva-emblem-stage::before {
  inset: 8% 0 0;
  background:
    radial-gradient(ellipse at 21% 36%, #fff 0 6%, transparent 29%),
    radial-gradient(ellipse at 79% 59%, #cbd3da 0 4%, transparent 26%),
    radial-gradient(ellipse at 70% 19%, #fff 0 6%, transparent 26%);
  filter: blur(13px);
  opacity: .76;
}
.aiva-emblem-stage::after {
  left: 50%;
  bottom: 4%;
  width: min(168px, 65%);
  height: 19px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #667485;
  filter: blur(15px);
  opacity: .34;
}
.aiva-emblem-stage > .aiva-emblem {
  position: relative;
  display: block;
  isolation: isolate;
  box-sizing: border-box;
  width: min(var(--aiva-emblem-size, 210px), calc(100% - 28px));
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
}
.aiva-emblem-ring {
  position: absolute;
  inset: -1px;
  z-index: -2;
  pointer-events: none;
  border: 1px solid #9daab6;
  border-radius: 50%;
  background: linear-gradient(152deg, #fff 5%, #e4e9ed 44%, #bfc8d1 83%, #e1e6eb);
  box-shadow: inset 0 1px 1px #fff, 0 2px 4px #53677a31, 0 11px 20px -9px #5564746b;
}
.aiva-emblem::before {
  content: "";
  position: absolute;
  inset: 3.35%;
  z-index: -1;
  border: 1px solid #a7b2bd75;
  border-radius: 50%;
  background: radial-gradient(ellipse at 47% 61%, #fdfefe 4%, #edf0f3 59%, #cdd6de 100%);
  box-shadow: inset 0 7px 14px -5px #6d7c8a80, inset 0 -3px 9px #fff, 0 1px 1px #fff;
}
.aiva-emblem::after,
.aiva-emblem-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(1px 3px 2.5px #53637455);
  transition: opacity 250ms ease;
}
.aiva-emblem::after {
  content: "";
  background: url("/aiva-emblem.svg") center / contain no-repeat;
}
.aiva-emblem:has(.aiva-emblem-canvas[data-rendered])::after { display: none; }
.aiva-emblem[data-state="rest"] .aiva-emblem-ring { border-color: #aab5c0; }
.aiva-emblem[data-state="rest"]::before,
.aiva-emblem[data-state="rest"]::after,
.aiva-emblem[data-state="rest"] > .aiva-emblem-ring,
.aiva-emblem[data-state="rest"] > .aiva-emblem-canvas { opacity: .3; }
.aiva-emblem:focus-visible { outline: 2px solid #405761; outline-offset: 5px; }
.aiva-emblem-stage > .aiva-emblem:disabled { opacity: 1; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .aiva-emblem::after, .aiva-emblem-canvas { transition: none; }
}

.aiva-emblem-ring {
  border-color: #88929a;
  background:
    conic-gradient(from var(--reflection-angle, 0deg), #78838c 0deg, #bac3ca 32deg,
      #fcfdff 58deg, #e4e9ed 78deg, #8c969f 115deg, #626d77 157deg,
      #b7c0c7 200deg, #f2f5f7 222deg, #a7b0b8 248deg, #748089 296deg, #78838c 360deg);
  box-shadow: inset 0 0 1px 1px #e1eaf47a, 0 3px 8px #78838c65, 0 13px 19px -11px #131e2b8c;
}
.aiva-emblem::before {
  border-color: #aebdc17a;
  background: radial-gradient(ellipse at 42% 34%, #f6f8fa, #e9edf1);
  box-shadow: inset 0 1px 3px #65728138;
}
.aiva-emblem::after,
.aiva-emblem-canvas {
  filter: drop-shadow(1px 3px 2px #45515d76);
}

.aiva-emblem:has(.aiva-emblem-canvas[data-rendered])::before,
.aiva-emblem:has(.aiva-emblem-canvas[data-rendered]) > .aiva-emblem-ring {
  visibility: hidden;
}
