.demo-page {
  padding: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.demo-static {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 1;
  pointer-events: none;
}

.demo-main {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%, calc((100dvh - 140px) * 16 / 9 + 32px));
  min-width: 0;
  padding: 16px;
}

.demo-embedded .demo-main {
  width: min(100%, calc(100dvh * 16 / 9));
  padding: 0;
}

.demo-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #000;
}

.demo-start[hidden] {
  display: none;
}

.demo-start .icons {
  width: clamp(128px, 18vw, 224px);
  height: clamp(128px, 18vw, 224px);
  fill: currentColor;
}

.demo-page,
.demo-page * {
  -webkit-user-select: none;
  user-select: none;
}

.demo-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
}

.demo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3cqw;
  padding: 4cqw;
}

.demo-slide[hidden] {
  display: none;
}

.demo-logo {
  width: 68%;
  height: auto;
  fill: currentColor;
}

.demo-icon {
  width: 18cqw;
  height: 18cqw;
  fill: currentColor;
  overflow: visible;
}

.demo-moving-part {
  fill: #fff;
}

[data-demo-point-icon] {
  transform-box: fill-box;
  transform-origin: center;
}

.demo-slide:has(.demo-caption) .demo-icon {
  width: 26cqw;
  height: 26cqw;
}

.demo-icon[data-demo-floppy] {
  width: 38cqw;
  height: 38cqw;
  color: #fff;
}

.demo-feedback {
  fill: none;
  stroke: #fff;
  stroke-width: 14px;
}

.demo-slide h1 {
  margin: 0;
  font-size: 5cqw;
  line-height: 1.15;
}

.demo-slide p {
  margin: 0;
  font-size: 3cqw;
  line-height: 1.25;
}

.demo-caption {
  display: grid;
  place-items: center;
}

.demo-caption > * {
  grid-area: 1 / 1;
}

.demo-slide .demo-tagline {
  font-size: 5cqw;
}

.demo-url {
  position: relative;
}

.demo-url::before {
  content: attr(aria-label);
  visibility: hidden;
}

.demo-url-typing {
  position: absolute;
  inset: 0;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
}

.demo-url-typing,
.demo-url-typing:visited {
  color: inherit;
}

.demo-url-typing[data-demo-url-color],
.demo-url-typing[data-demo-url-color]:visited {
  color: #0080ff;
  pointer-events: auto;
}

.demo-caret {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.1em;
  background: #fff;
}

.demo-slide [data-demo-description] {
  color: #fff;
  opacity: 0;
}

.demo-controls {
  position: fixed;
  top: 8px;
  right: 8px;
  left: 8px;
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: max(8px, calc((100vw - 428px) / 8));
  max-width: calc(100vw - 16px);
}

.demo-playback {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.demo-controls[hidden],
.demo-playback[hidden] {
  display: none;
}

.demo-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.demo-controls button[aria-pressed="true"] {
  color: #0080ff;
}

.demo-controls .icons {
  fill: currentColor;
}

.demo-status {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  min-height: 2.5em;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .demo-controls,
  .demo-playback {
    gap: 4px;
  }
}
