.diorama.embedded .viewport {
  height: clamp(360px, 38vw, 500px);
}

.speech-bubble[data-role="KOMPAKT"] {
  transform: translateX(-65%);
}

.speech-bubble[data-role="SUV"] {
  transform: translateX(10%);
}

.diorama.embedded:has(.scripts button:first-child[aria-pressed="true"]) .viewport {
  height: clamp(300px, 32vw, 420px);
}

html:has(.diorama.embedded),
body:has(.diorama.embedded),
body:has(.diorama.embedded) #syntac-diorama {
  min-height: 0;
}

.diorama.embedded .controls {
  padding: 18px 24px;
}

.diorama.embedded .actions {
  margin-top: 18px;
  padding-top: 16px;
}

.diorama.embedded:has(.scripts button:first-child[aria-pressed="true"]) .actions .action-kicker,
.diorama.embedded:has(.scripts button:first-child[aria-pressed="true"]) .actions p {
  display: none;
}

.diorama.embedded {
  font-family: "Segoe UI Variable", Inter, Aptos, system-ui, sans-serif;
}

.diorama.embedded .scripts button {
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.diorama.embedded .action-kicker,
.diorama.embedded .scenario-progress {
  font-family: inherit;
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .diorama.embedded .viewport {
    height: 360px;
  }

  .diorama.embedded:has(.scripts button:first-child[aria-pressed="true"]) .viewport {
    height: 300px;
  }

  .diorama.embedded .controls {
    padding: 14px 14px 18px;
  }
}
