.result-viewer {
  color: #25313b;
  width: 100%;
  min-width: 0;
}

.result-viewer__frame,
.result-viewer__status {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.result-viewer__frame { color: #475569; }
.result-viewer__status { min-height: 1.5em; }

.result-viewer__load {
  background: #c8f078;
  border: 0;
  border-radius: 0.5rem;
  color: #17220b;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 0.7rem 1rem;
}

.result-viewer__load:disabled { cursor: wait; opacity: 0.65; }
.result-viewer__load:focus-visible { outline: 3px solid #25313b; outline-offset: 3px; }

.result-viewer__stage {
  aspect-ratio: 4 / 3;
  background: #141b20;
  border-radius: 0.65rem;
  margin-top: 0.85rem;
  max-height: min(60vh, 640px);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.result-viewer__stage canvas {
  display: block;
  height: 100%;
  touch-action: pan-y;
  width: 100%;
}

@media (max-width: 600px) {
  .result-viewer__stage { aspect-ratio: 1 / 1; max-height: 420px; }
}
