.playground {
  background: #f8f6fb;
}
.playground .section-heading {
  flex-wrap: wrap;
  gap: 20px;
}
.playground .section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}
.pg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.pg-demo {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.pg-demo-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}
.pg-demo-heading h3 {
  font-size: 19px;
  margin: 0;
}
.pg-demo-heading > span,
.pg-hint {
  font-size: 12px;
  color: #716679;
}
.pg-hint {
  margin: 14px 0 0;
}
.pg-carousel {
  background: #eeeaf5;
  border-radius: 12px;
  overflow: hidden;
  touch-action: pan-y;
}
.pg-scene {
  position: relative;
  min-height: 275px;
  padding: 32px;
  overflow: hidden;
  background: #e9e1f1;
  isolation: isolate;
}
.pg-scene[hidden],
.pg-results li[hidden],
.pg-reset[hidden] {
  display: none;
}
.pg-scene p,
.pg-scene h4,
.pg-scene > span {
  position: relative;
  z-index: 1;
}
.pg-scene p {
  font-size: 13px;
  margin: 0 0 14px;
}
.pg-scene h4 {
  font-size: clamp(29px, 3vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1.25;
  margin: 0 0 20px;
}
.pg-scene > span {
  font-size: 12px;
}
.pg-scene[data-scene='1'] {
  background: #dfece4;
}
.pg-scene[data-scene='2'] {
  background: #f1e0d9;
}
.pg-scene-art {
  position: absolute;
  right: -15px;
  bottom: -45px;
  width: 210px;
  height: 260px;
  transform: rotate(-15deg);
  opacity: 0.8;
}
.pg-scene-art i {
  position: absolute;
  width: 110px;
  height: 210px;
  background: #a989b8;
  border-radius: 90px 90px 10px 10px;
  right: 5px;
  bottom: 0;
}
.pg-scene-art i:nth-child(2) {
  transform: rotate(-40deg);
  transform-origin: bottom;
  background: #bea6cc;
}
.pg-scene-art i:nth-child(3) {
  transform: rotate(-80deg);
  transform-origin: bottom;
  background: #d0bddd;
}
[data-scene='1'] .pg-scene-art i {
  background: #8aaf9c;
  border-radius: 50%;
}
[data-scene='2'] .pg-scene-art i {
  background: #c58e79;
  border-radius: 8px 80px;
}
.pg-slide-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 20px;
}
.pg-slide-controls > button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
}
.pg-dots {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.pg-dots button {
  width: 28px;
  height: 32px;
  border: 0;
  background: transparent;
  position: relative;
}
.pg-dots button::after {
  content: '';
  position: absolute;
  inset: 12px 10px;
  background: #b2a5bc;
  border-radius: 10px;
}
.pg-dots button[aria-pressed='true']::after {
  background: var(--plum);
  inset-inline: 5px;
}
[data-pg-count] {
  font-size: 12px;
}
.pg-button-stage,
.pg-modal-stage {
  min-height: 341px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  background: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}
.pg-stage-caption {
  margin: 0 0 8px;
}
.pg-button,
.pg-secondary,
.pg-like {
  border-radius: 9px;
  padding: 12px 24px;
  border: 1px solid var(--plum);
  transition:
    background 0.2s,
    transform 0.2s;
}
.pg-button {
  background: var(--plum);
  color: white;
}
.pg-button:hover {
  background: #45273b;
}
.pg-button:active,
.pg-like:active {
  transform: scale(0.96);
}
.pg-button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.pg-like,
.pg-secondary {
  background: white;
  color: var(--plum);
}
.pg-like {
  min-width: 200px;
}
.pg-like span {
  font-size: 23px;
  vertical-align: middle;
  margin-right: 8px;
}
.pg-like[aria-pressed='true'] {
  background: #f6e3ed;
}
.pg-button-status,
[data-pg-modal-status],
[data-pg-results-status] {
  font-size: 13px;
  margin: 0;
  color: #716679;
}
.pg-setting-preview {
  width: min(240px, 100%);
  text-align: left;
  background: #eeeaf5;
  border-radius: 10px;
  padding: 20px;
}
.pg-setting-preview > span {
  font-size: 12px;
  display: block;
}
.pg-setting-preview strong {
  display: block;
  font-size: 25px;
  margin: 4px 0 14px;
}
.pg-setting-preview > div {
  display: flex;
  gap: 8px;
}
.pg-setting-preview i {
  width: 45px;
  height: 35px;
  border-radius: 5px;
  background: #ffffffb0;
}
.pg-filter-stage {
  min-height: 341px;
  padding: 24px;
  background: white;
  border-radius: 12px;
}
.pg-filter-stage > label {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}
#pg-search {
  width: 100%;
  border: 1px solid var(--line);
  background: #faf9fc;
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}
.pg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0;
}
.pg-filters button {
  background: white;
  color: var(--plum);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 6px 15px;
  font-size: 13px;
}
.pg-filters button[aria-pressed='true'] {
  background: var(--plum);
  color: white;
  border-color: var(--plum);
}
.pg-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.pg-results li {
  background: #f4f0f7;
  border-radius: 5px;
  padding: 10px;
}
.pg-results span {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.pg-results strong {
  font-size: 13px;
  font-weight: 500;
}
.pg-reset {
  background: none;
  color: var(--plum);
  border: 0;
  text-decoration: underline;
  padding: 8px 0;
}
.pg-dialog {
  width: min(460px, 92vw);
  padding: 28px;
}
.pg-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pg-dialog h3 {
  margin: 0;
  font-size: 23px;
}
.pg-close {
  background: none;
  border: none;
  font-size: 28px;
  width: 44px;
  height: 44px;
  color: var(--ink);
}
.pg-dialog fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.pg-dialog fieldset label {
  display: block;
  padding: 8px 0;
}
.pg-dialog input {
  accent-color: var(--plum);
}
.pg-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.playground :focus-visible {
  outline: 3px solid #884b99;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .pg-grid {
    grid-template-columns: 1fr;
  }
  .playground.design-section {
    padding: 40px 22px;
  }
  .pg-scene-art {
    right: -55px;
    opacity: 0.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .playground *,
  .playground *::after {
    transition: none;
    animation: none;
  }
}
