/* A quiet repeating gold finish while the verified result is visible. */
.case-result-total strong.case-result-shine {
  position: relative;
  display: table;
  isolation: isolate;
  color: #e4cf9b;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .case-result-total strong.case-result-shine {
    background-image: linear-gradient(145deg, #fff6d7 3%, #d8bb77 28%, #f6e6b7 42%, #ae8448 58%, #e5ca8d 72%, #fff2cf 95%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.case-result-total .case-result-shine-face,
.case-result-total .case-result-shine-glint,
.case-result-total .case-result-shine-aura {
  position: absolute;
  pointer-events: none;
  font: inherit;
  letter-spacing: inherit;
  margin: 0;
  opacity: 0;
}

.case-result-total .case-result-shine-face {
  inset: 0;
  white-space: pre;
  color: #fff7df;
  -webkit-text-fill-color: #fff7df;
  clip-path: polygon(-45% 0, -30% 0, -60% 100%, -75% 100%);
}

.case-result-total .case-result-shine-glint {
  width: 28px;
  height: 28px;
  inset-inline-start: 74%;
  top: 15%;
  color: #fff1c4;
  -webkit-text-fill-color: initial;
  transform: translate3d(-50%, -50%, 0) scale(.05) rotate(-30deg);
}

.case-result-total .case-result-shine-glint::before,
.case-result-total .case-result-shine-glint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 0, 54% 43%, 100% 50%, 54% 57%, 50% 100%, 46% 57%, 0 50%, 46% 43%);
}

.case-result-total .case-result-shine-glint::after {
  transform: rotate(45deg) scale(.4);
  opacity: .65;
}

.case-result-total .case-result-shine-aura {
  z-index: -1;
  width: 160px;
  height: 90px;
  left: 34%;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(226 189 114 / .2), rgb(226 189 114 / 0) 70%);
  transform: scale(.65);
}

.case-result-total .is-result-shining .case-result-shine-face {
  animation: case-result-polish 6500ms cubic-bezier(.24, .58, .25, 1) infinite;
}

.case-result-total .is-result-shining .case-result-shine-glint {
  animation: case-result-glint 6500ms cubic-bezier(.2, .7, .3, 1) infinite;
}

.case-result-total .is-result-shining .case-result-shine-aura {
  animation: case-result-aura 6500ms ease-out infinite;
}

/* Only the small letter-shaped highlight repaints, briefly once per cycle.
   The number itself never moves, fades, or counts through invented values. */
@keyframes case-result-polish {
  0%, 5% { opacity: 0; clip-path: polygon(-45% 0, -30% 0, -60% 100%, -75% 100%); }
  9% { opacity: .88; }
  25% { opacity: .82; }
  31%, 100% { opacity: 0; clip-path: polygon(160% 0, 175% 0, 145% 100%, 130% 100%); }
}

@keyframes case-result-glint {
  0%, 16% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.05) rotate(-30deg); }
  20% { opacity: .95; transform: translate3d(-50%, -50%, 0) scale(1) rotate(0); }
  25% { opacity: .55; }
  31%, 100% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.1) rotate(35deg); }
}

@keyframes case-result-aura {
  0% { opacity: 0; transform: scale(.65); }
  12% { opacity: .8; }
  31%, 100% { opacity: 0; transform: scale(1.65); }
}

/* Extra CSS guard covers the interval before the controller's observers run. */
.motion-paused .case-result-total .case-result-shine-face,
.motion-paused .case-result-total .case-result-shine-glint,
.motion-paused .case-result-total .case-result-shine-aura {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .case-result-total .case-result-shine-face,
  .case-result-total .case-result-shine-glint,
  .case-result-total .case-result-shine-aura {
    display: none;
    animation: none;
  }
}
