html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.acc {
  box-sizing: border-box;
  width: min(280px, 88vw);
}

.acc__trigger {
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 12px;
  background: #17141a;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.acc__panel {
  margin-top: 8px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(23, 20, 26, 0.06);
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}
.acc__panel p {
  margin: 0;
  color: #17141a;
  font-weight: 400;
  font-size: clamp(13px, 3.6vw, 14px);
  line-height: 1.5;
  font-family: inherit;
}

.acc__panel[data-state=open] {
  transform: scaleY(1);
  opacity: 1;
}

.acc__panel.is-demo {
  animation: acc-loop 2s ease-out infinite;
}

@keyframes acc-loop {
  0%, 8% {
    transform: scaleY(0);
    opacity: 0;
  }
  35%, 65% {
    transform: scaleY(1);
    opacity: 1;
  }
  92%, 100% {
    transform: scaleY(0);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .acc__panel {
    transition: opacity 220ms linear;
    transform: none;
    animation: none;
  }
  .acc__panel[data-state=closed] {
    opacity: 0;
  }
}
