/* Only the isolated demo is styled. No parent website styles are imported. */
:root {
  background: #e1e1e1;
  color: #171717;
  font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; }

:root.embedded { background: transparent; }
.embedded .robot-stage { padding: 0; }

.robot-stage {
  position: relative;
  display: grid;
  /* Keep the video's intrinsic 1920px height from enlarging the grid row. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  height: 100dvh;
  padding: clamp(12px, 3vh, 32px);
  overflow: hidden;
}

.robot-assembly {
  grid-area: 1 / 1;
  display: block;
  height: 100%;
  width: 100%;
  min-height: 0;
  min-width: 0;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.chip-overlay {
  grid-area: 1 / 1;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.play-button, .playback-error {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 18px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.play-button { cursor: pointer; }
.play-button:focus-visible { outline: 2px solid #ed671d; outline-offset: 4px; }
[hidden] { display: none !important; }
