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);
}

.accordion {
  width: clamp(220px, 78vw, 340px);
  background: #17141a;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  overflow: hidden;
  font-family: inherit;
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: none;
  padding: clamp(12px, 3vw, 18px) clamp(14px, 4vw, 20px);
  cursor: pointer;
  color: #fff7e6;
  font-weight: 600;
  font-size: clamp(14px, 3.6vw, 17px);
  line-height: 1.3;
  font-family: inherit;
  text-align: left;
}

.accordion__chevron {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.accordion__body {
  margin: 0;
  padding: 0 clamp(14px, 4vw, 20px) clamp(12px, 3vw, 18px);
  color: #fff7e6;
  opacity: 0.86;
  font-weight: 400;
  font-size: clamp(12px, 3.2vw, 14.5px);
  line-height: 1.5;
  font-family: inherit;
}

.accordion__panel {
  height: 0;
  overflow: hidden;
  interpolate-size: allow-keywords;
}

.accordion.is-open .accordion__panel {
  height: calc-size(auto, size);
  transition: height 220ms ease-out;
}

@supports not (height: calc-size(auto, size)) {
  .accordion.is-open .accordion__panel {
    height: auto;
  }
}
.accordion__panel.is-demo {
  animation: accordion-loop 2s ease-out infinite;
}

@keyframes accordion-loop {
  0%, 8% {
    height: 0;
  }
  42%, 58% {
    height: calc-size(auto, size);
  }
  92%, 100% {
    height: 0;
  }
}
@supports not (height: calc-size(auto, size)) {
  @keyframes accordion-loop {
    0%, 8% {
      height: 0;
    }
    42%, 58% {
      height: 220px;
    }
    92%, 100% {
      height: 0;
    }
  }
}
.accordion--inner {
  margin: 4px clamp(14px, 4vw, 20px) 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.accordion__header--inner {
  padding: 10px 12px;
  font-weight: 600;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.3;
  font-family: inherit;
}

.accordion__panel--inner {
  height: 0;
  overflow: hidden;
  interpolate-size: allow-keywords;
}

.accordion__panel--inner .accordion__body {
  padding: 0 12px 10px;
}

.accordion__panel--inner.is-demo-inner {
  animation: accordion-loop-inner 2s ease-out infinite;
}

@keyframes accordion-loop-inner {
  0%, 20% {
    height: 0;
  }
  32%, 46% {
    height: calc-size(auto, size);
  }
  58%, 100% {
    height: 0;
  }
}
@supports not (height: calc-size(auto, size)) {
  @keyframes accordion-loop-inner {
    0%, 20% {
      height: 0;
    }
    32%, 46% {
      height: 90px;
    }
    58%, 100% {
      height: 0;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .accordion__panel,
  .accordion__panel.is-demo,
  .accordion__chevron,
  .accordion__body,
  .accordion.is-open .accordion__panel {
    animation: none !important;
    transition: none !important;
  }
  .accordion__panel.is-demo {
    height: auto;
  }
}
