/* The preview stays painted while WebGL initializes in the layer underneath. */
#live-wheat {
  margin: 1.5rem 0 2rem;
}
#live-wheat .live-wheat-stage {
  position: relative;
  width: 100%;
  height: 720px;
  overflow: hidden;
  border: 1px solid #d8dee6;
  border-radius: 0.75rem;
  background: #fff;
}
#live-wheat .live-wheat-preview,
#live-wheat .live-wheat-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
#live-wheat .live-wheat-preview {
  display: block;
  z-index: 1;
  object-fit: contain;
  background: #fff;
  opacity: 1;
  transition: opacity 160ms ease;
}
#live-wheat .live-wheat-frame {
  opacity: 0;
  pointer-events: none;
}
#live-wheat[data-state="ready"] .live-wheat-frame {
  opacity: 1;
  pointer-events: auto;
}
#live-wheat[data-state="ready"] .live-wheat-preview {
  opacity: 0;
  pointer-events: none;
}
#live-wheat .live-wheat-caption {
  margin-top: 0.65rem;
  font-size: 0.9em;
}
#live-wheat .live-wheat-status {
  display: inline;
}
#live-wheat .live-wheat-status:not(:empty)::after {
  content: " ";
}
#live-wheat[data-state="ready"] .live-wheat-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.archimed-animations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.archimed-animations img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
@media (max-width: 600px) {
  #live-wheat .live-wheat-stage { height: 690px; }
  .archimed-animations { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #live-wheat .live-wheat-preview { transition: none; }
}

/* The package introduction and logo lead; the optional demo stays in the body. */
.VPHome .VPHero { padding-bottom: 40px; }
.VPHome .VPHero .image { width: clamp(220px, 30vw, 340px); }
.VPHome .VPHero .image img { display: block; aspect-ratio: 1; }
#live-wheat { max-width: 1000px; margin-inline: auto; }
@media (min-width: 1000px) {
  #live-wheat .live-wheat-stage { height: 650px; }
}
