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

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

.pf {
  width: min(400px, 96vw);
}

.pf__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  border-radius: 8px;
}

.pf__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 247, 230, 0.22) 50%, transparent 65%);
  animation: pf-scan 2.4s linear infinite;
}

@keyframes pf-scan {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.pf__item {
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.5);
  overflow: hidden;
}

.pf__q {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 8px 32px 8px 12px;
  background: transparent;
  color: #fff7e6;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  font-family: inherit;
}

.pf__q::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255, 247, 230, 0.7);
  border-bottom: 2px solid rgba(255, 247, 230, 0.7);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: pf-nudge 2.2s ease-in-out infinite;
}

.pf__item.is-open .pf__q::after {
  transform: translateY(-35%) rotate(-135deg);
  animation: none;
}

@keyframes pf-nudge {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
.pf__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 300ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 300ms;
}

.pf__item.is-open .pf__a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 300ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.pf__a p {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 12px;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  font-family: inherit;
  color: rgba(255, 247, 230, 0.8);
}

.pf__item.is-open .pf__a p {
  padding: 0 12px 8px;
}

@media (prefers-reduced-motion: reduce) {
  .pf__q::after {
    animation: none !important;
    transition: none !important;
  }
  .pf__a {
    transition: none !important;
  }
  .pf__scan {
    animation: none !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .pf__list {
    gap: 4px;
  }
  .pf__q {
    padding: 4px 32px 4px 8px;
  }
}
