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

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

.ob {
  width: min(312px, 94vw);
  box-sizing: border-box;
  background: #fff7e6;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  padding: 12px;
}

.ob__title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  color: #17141a;
}

.ob__ic {
  display: grid;
  place-items: center;
  color: #2f6df6;
}

.ob__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ob__item {
  border-bottom: 1px solid rgba(23, 20, 26, 0.1);
}

.ob__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  color: #17141a;
}

.ob__q:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.ob__done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: #50a26e;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.ob__item.is-open .ob__done {
  opacity: 1;
  transform: scale(1);
}

.ob__check polyline {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  transition: stroke-dashoffset 300ms ease-out;
}

.ob__item.is-open .ob__check polyline {
  stroke-dashoffset: 0;
}

.ob__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.ob__item.is-open .ob__a {
  grid-template-rows: 1fr;
}

.ob__a-in {
  overflow: hidden;
}

.ob__a p {
  margin: 0;
  padding: 0 0 4px;
  font-family: inherit;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(23, 20, 26, 0.66);
}

.ob__cta {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: #2f6df6;
  color: #fff7e6;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.ob__cta:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.ob__cta-t {
  grid-area: 1/1;
}

.ob__cta-t--ready {
  opacity: 0;
}

.ob.is-ready .ob__cta-t {
  opacity: 0;
}

.ob.is-ready .ob__cta-t--ready {
  opacity: 1;
}

.ob.is-ready .ob__cta {
  animation: ob-pulse 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes ob-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
.ob__status {
  margin: 4px 0 0;
  min-height: 13px;
  font-family: inherit;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.55);
}

.stage.is-demo .ob__a {
  transition: none;
  animation-name: ob-open;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 160ms);
}

@keyframes ob-open {
  0% {
    grid-template-rows: 0fr;
  }
  16% {
    grid-template-rows: 1fr;
  }
  66% {
    grid-template-rows: 1fr;
  }
  100% {
    grid-template-rows: 0fr;
  }
}
.stage.is-demo .ob__a p {
  animation-name: ob-answer;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 160ms);
}

@keyframes ob-answer {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  20%, 66% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(6px);
  }
}
.stage.is-demo .ob__done {
  transition: none;
  animation-name: ob-done;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 160ms);
}

@keyframes ob-done {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  14% {
    opacity: 1;
    transform: scale(1.16);
  }
  24%, 66% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}
.stage.is-demo .ob__check polyline {
  transition: none;
  animation-name: ob-draw;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 160ms);
}

@keyframes ob-draw {
  0% {
    stroke-dashoffset: 26;
  }
  28%, 66% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 26;
  }
}
.stage.is-demo .ob__cta-t {
  animation-name: ob-label-out;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.stage.is-demo .ob__cta-t--ready {
  animation-name: ob-label-in;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes ob-label-out {
  0%, 40% {
    opacity: 1;
  }
  41%, 64% {
    opacity: 0;
  }
  65%, 100% {
    opacity: 1;
  }
}
@keyframes ob-label-in {
  0%, 40% {
    opacity: 0;
  }
  41%, 64% {
    opacity: 1;
  }
  65%, 100% {
    opacity: 0;
  }
}
.stage.is-demo .ob__cta {
  animation-name: ob-cta-loop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes ob-cta-loop {
  0%, 41% {
    transform: scale(1);
  }
  48% {
    transform: scale(1.06);
  }
  55% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.04);
  }
  64%, 100% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ob__a, .ob__done, .ob__check polyline {
    transition: none !important;
  }
  .stage.is-demo .ob__a,
  .stage.is-demo .ob__a p,
  .stage.is-demo .ob__done,
  .stage.is-demo .ob__check polyline,
  .stage.is-demo .ob__cta,
  .stage.is-demo .ob__cta-t,
  .stage.is-demo .ob__cta-t--ready,
  .ob.is-ready .ob__cta {
    animation: none !important;
  }
  .stage.is-demo .ob__a {
    grid-template-rows: 1fr !important;
  }
  .stage.is-demo .ob__a p {
    opacity: 1 !important;
    transform: none !important;
  }
  .stage.is-demo .ob__done {
    opacity: 1 !important;
    transform: none !important;
  }
  .stage.is-demo .ob__check polyline {
    stroke-dashoffset: 0 !important;
  }
  .stage.is-demo .ob__cta {
    transform: none !important;
  }
  .stage.is-demo .ob__cta-t {
    opacity: 0 !important;
  }
  .stage.is-demo .ob__cta-t--ready {
    opacity: 1 !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .ob {
    width: min(272px, 92vw);
    padding: 8px;
  }
  .ob__title {
    margin: 0 0 4px;
    font-size: 11px;
  }
  .ob__ic svg {
    width: 14px;
    height: 14px;
  }
  .ob__list {
    gap: 0;
  }
  .ob__q {
    padding: 4px 0;
    font-size: 10px;
  }
  .ob__done {
    font-size: 9px;
  }
  .ob__check {
    width: 12px;
    height: 12px;
  }
  .ob__a p {
    padding: 0;
    font-size: 8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ob__cta {
    margin-top: 8px;
    padding: 4px 8px;
    font-size: 10px;
  }
  .ob__status {
    margin-top: 0;
    min-height: 0;
    font-size: 9px;
  }
}
