/* LOVE bear: stationary image + subtle 3-second gloss sweep.
   Load AFTER the project's main styles. This file does not style links or text.
   The mask is relative to THIS CSS file; deploy assets/ with css/. */
.scene--shimmer .bear {
  animation: none;
  transform: none;
}
.scene--shimmer .ground-shadow {
  animation: none;
  transform: none;
  opacity: .8;
}
.scene--shimmer .bear-surface {
  position: relative;
  z-index: 2;
  height: 100%;
  aspect-ratio: 927 / 1457;
  max-width: 100%;
  flex: 0 1 auto;
  isolation: isolate;
}
.scene--shimmer .bear-surface .bear {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scene--shimmer .bear-sheen {
  --bear-sheen-mask: url("../assets/bear-sheen-mask.webp");
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: var(--bear-sheen-mask);
  mask-image: var(--bear-sheen-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-mode: alpha;
  mix-blend-mode: screen;
}
.scene--shimmer .bear-sheen::before {
  content: "";
  position: absolute;
  left: -70%;
  top: -20%;
  width: 240%;
  height: 140%;
  background: linear-gradient(112deg,
    transparent 35%,
    rgba(144, 196, 237, .025) 41%,
    rgba(183, 221, 250, .09) 46%,
    rgba(231, 246, 255, .28) 49%,
    rgba(255, 255, 255, .38) 50%,
    rgba(228, 244, 255, .20) 52%,
    rgba(173, 216, 248, .06) 56%,
    transparent 64%);
  opacity: 0;
  transform: translate3d(-64%, 0, 0);
  animation: bear-gloss-sweep 3s linear infinite;
  will-change: transform, opacity;
}
@keyframes bear-gloss-sweep {
  0%, 6% { transform: translate3d(-64%, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  58% { transform: translate3d(64%, 0, 0); opacity: 1; }
  64%, 100% { transform: translate3d(64%, 0, 0); opacity: 0; }
}
.scene--shimmer.is-shimmer-paused .bear-sheen::before {
  animation-play-state: paused;
  will-change: auto;
}
@supports not ((mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000))) {
  .scene--shimmer .bear-sheen { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep the original non-animated shadow used by the accessibility layout. */
  .scene--shimmer .ground-shadow { opacity: 1; }
  .scene--shimmer .bear-sheen { display: none; }
  .scene--shimmer .bear-sheen::before {
    animation: none;
    will-change: auto;
  }
}
