html.demo-embed,
body.demo-embed {
  overflow: hidden;
  min-height: var(--demo-height, 720px);
}

body.demo-embed {
  background:
    linear-gradient(90deg, rgba(255, 211, 93, 0.24) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #fff8e8 0%, #ffd4bf 48%, #b9edf0 100%);
}

body.demo-embed .app-shell {
  width: var(--demo-virtual-width, 1180px);
  max-width: none;
  margin: 0;
  padding: 12px;
  transform: scale(var(--demo-scale, 1));
  transform-origin: top left;
}

body.demo-embed .marquee {
  display: flex;
  align-items: center;
  padding: 12px 18px;
}

body.demo-embed h1 {
  font-size: 2rem;
}

body.demo-embed .playroom {
  grid-template-columns: 84px minmax(360px, 1fr) 300px;
  gap: 12px;
}

body.demo-embed .stage-card {
  min-height: 560px;
}

body.demo-embed .doll-switcher {
  width: fit-content;
  display: flex;
}

body.demo-embed .panel-closet {
  grid-column: auto;
}

body.demo-embed .closet-grid {
  grid-template-columns: 1fr;
}

.demo-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 500;
  width: 42px;
  height: 52px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--demo-cursor-x, 48px), var(--demo-cursor-y, 48px), 0);
  transition:
    opacity 180ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(2px 4px 0 rgba(57, 42, 66, 0.22));
}

.demo-cursor.is-visible {
  opacity: 1;
}

.demo-cursor svg {
  display: block;
  width: 100%;
  height: auto;
}

.demo-cursor path {
  fill: #fffdf8;
  stroke: #392a42;
  stroke-linejoin: round;
  stroke-width: 3;
}

.demo-cursor-ring {
  position: absolute;
  left: -10px;
  top: -8px;
  width: 34px;
  height: 34px;
  border: 3px solid #f45f91;
  border-radius: 999px;
  opacity: 0;
}

.demo-cursor.is-clicking .demo-cursor-ring {
  animation: demo-click-ring 360ms ease-out;
}

@keyframes demo-click-ring {
  from {
    opacity: 0.95;
    transform: scale(0.35);
  }

  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

@media (max-width: 520px) {
  body.demo-embed .app-shell {
    width: var(--demo-virtual-width, 760px);
  }

  body.demo-embed .marquee {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  body.demo-embed .playroom {
    grid-template-columns: 76px 1fr;
  }

  body.demo-embed .doll-switcher {
    width: 100%;
    display: grid;
  }

  body.demo-embed .panel-closet {
    grid-column: 1 / -1;
  }

  body.demo-embed .closet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-cursor {
    display: none;
  }
}
