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

.of {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  width: min(320px, 88vw);
}

.of * {
  box-sizing: border-box;
}

.of__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.of__title {
  margin: 0;
  color: #17141a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.of__again {
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

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

.of__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.of__slot {
  display: grid;
  min-height: 36px;
}

.of__ghost {
  grid-area: 1/1;
  border: 2px dashed rgba(255, 247, 230, 0.62);
  border-radius: 12px;
}

.of__card {
  grid-area: 1/1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
  transform: translateY(0);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.of__no {
  padding: 4px;
  border-radius: 4px;
  background: #17141a;
  color: #fff7e6;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.of__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.of__list.is-loading .of__card {
  transform: translateY(10px);
  opacity: 0;
}

.of__list.is-loading .of__slot.is-in .of__card {
  transform: translateY(0);
  opacity: 1;
}

@keyframes of-show {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  68% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes of-rise {
  0%, 8% {
    transform: translateY(10px);
  }
  30%, 68% {
    transform: translateY(0);
  }
  69%, 100% {
    transform: translateY(10px);
  }
}
.of.is-demo .of__card {
  animation-name: of-show, of-rise;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
  animation-delay: 0ms, 0ms;
}
.of.is-demo .of__slot:nth-child(2) .of__card {
  animation-delay: 160ms, 160ms;
}
.of.is-demo .of__slot:nth-child(3) .of__card {
  animation-delay: 320ms, 320ms;
}

@media (max-width: 340px) {
  .of {
    gap: 8px;
  }
  .of__title {
    font-size: 12px;
  }
  .of__again {
    font-size: 10px;
  }
  .of__list {
    gap: 4px;
  }
  .of__slot {
    min-height: 32px;
  }
  .of__card {
    padding: 0 8px;
  }
  .of__name {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .of.is-demo .of__card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
