.visual-scene {
  min-width: 0;
  margin: 0;
  color: inherit;
}

.visual-scene-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgb(93 113 87 / 24%);
  border-radius: 22px;
  background: #ede8dc;
  box-shadow: 12px 14px 0 rgb(57 74 53 / 9%);
}

.visual-scene--control .visual-scene-stage {
  background: #14372d;
  border-color: #526f58;
}

.visual-scene-stage > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 520;
  object-fit: contain;
}

.visual-scene-sweep {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -32%;
  width: 28%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgb(255 253 240 / 18%), transparent);
  pointer-events: none;
}

.visual-scene figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 19px;
  color: inherit;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.6;
  opacity: 0.8;
}

.visual-scene figcaption::before {
  content: "";
  flex: 0 0 20px;
  height: 1px;
  background: currentColor;
  transform: translateY(-3px);
  opacity: 0.6;
}

.visual-scene--compact .visual-scene-stage {
  border-radius: 14px;
  box-shadow: none;
}

.visual-scene--compact figcaption {
  margin-top: 12px;
  font-size: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .visual-scene[data-visual-state="entered"] .visual-scene-stage {
    animation: scene-arrive 900ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }

  .visual-scene[data-visual-state="entered"] .visual-scene-sweep {
    animation: scene-sweep 2.2s ease 150ms both;
  }
}

@keyframes scene-arrive {
  from { opacity: 0.6; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scene-sweep {
  0% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  25%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(520%) skewX(-18deg); }
}

@media (max-width: 720px) {
  .visual-scene-stage {
    border-radius: 16px;
    box-shadow: 6px 8px 0 rgb(57 74 53 / 9%);
  }
}
