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

.ef {
  box-sizing: border-box;
  width: min(304px, 92vw);
  padding: 12px;
  border: 1px solid #17141a;
  border-radius: 16px;
  background: #ffd23f;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.ef__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.ef__t {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.ef__phase {
  margin-left: auto;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.1);
  color: #17141a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
}

.ef__empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 0 8px;
}

.ef__ic {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: #17141a;
}

.ef__ic svg {
  width: 24px;
  height: 24px;
}

.ef__e1 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.ef__e2 {
  margin: 0;
  color: rgba(23, 20, 26, 0.72);
  font-size: 10px;
}

.ef.has-act .ef__empty {
  display: none;
}

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

.ef__fold {
  display: grid;
  grid-template-rows: 1fr;
}

.ef__row--first .ef__fold,
.ef__row--second .ef__fold {
  grid-template-rows: 0fr;
}

.ef.has-act .ef__row--first .ef__fold {
  grid-template-rows: 1fr;
}

.ef__cell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 8px;
  background: #ffffff;
  color: #17141a;
}

.ef__av {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--a);
  color: #17141a;
  font-size: 11px;
  font-weight: 700;
}

.ef__line {
  margin: 0;
}

.ef__line b {
  font-weight: 700;
}

.ef__tm {
  color: rgba(23, 20, 26, 0.72);
  font-size: 10px;
}

.ef__row.is-in .ef__cell {
  animation: ef-rise 300ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes ef-rise {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}
.ef__btns {
  display: flex;
  gap: 4px;
  margin: 8px 0 0;
}

.ef__b {
  padding: 4px 12px;
  border: 1px solid #17141a;
  border-radius: 999px;
  background: transparent;
  color: #17141a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

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

.ef__b:active {
  transform: scale(0.94);
}

.ef__b--main {
  background: #17141a;
  color: #ffd23f;
}

@keyframes ef-empty-out {
  0%, 17% {
    visibility: visible;
  }
  18%, 86% {
    visibility: hidden;
  }
  87%, 100% {
    visibility: visible;
  }
}
@keyframes ef-first-in {
  0%, 17% {
    grid-template-rows: 0fr;
  }
  18% {
    grid-template-rows: 1fr;
  }
  18.1%, 86% {
    grid-template-rows: 1fr;
  }
  87%, 100% {
    grid-template-rows: 0fr;
  }
}
@keyframes ef-first-rise {
  0%, 18% {
    transform: translateY(8px);
  }
  25%, 86% {
    transform: translateY(0);
  }
  87%, 100% {
    transform: translateY(8px);
  }
}
@keyframes ef-av-pop {
  0%, 18% {
    transform: scale(0.4);
  }
  24%, 86% {
    transform: scale(1);
  }
  87%, 100% {
    transform: scale(0.4);
  }
}
@keyframes ef-second-in {
  0%, 54% {
    grid-template-rows: 0fr;
  }
  55% {
    grid-template-rows: 1fr;
  }
  55.1%, 86% {
    grid-template-rows: 1fr;
  }
  87%, 100% {
    grid-template-rows: 0fr;
  }
}
@keyframes ef-second-rise {
  0%, 55% {
    transform: translateY(8px);
  }
  62%, 86% {
    transform: translateY(0);
  }
  87%, 100% {
    transform: translateY(8px);
  }
}
@keyframes ef-ic-bob {
  0%, 17% {
    transform: translateY(0);
  }
  6% {
    transform: translateY(-3px);
  }
  12% {
    transform: translateY(0);
  }
  18%, 100% {
    transform: translateY(0);
  }
}
@keyframes ef-add-pop {
  0%, 17% {
    transform: translateY(0);
  }
  20% {
    transform: scale(0.92);
  }
  24%, 86% {
    transform: scale(1);
  }
  87%, 100% {
    transform: scale(1);
  }
}
@keyframes ef-phase-cut {
  0%, 17% {
    transform: scale(1);
  }
  18%, 86% {
    transform: scale(1.08);
  }
  87%, 100% {
    transform: scale(1);
  }
}
.ef.is-demo .ef__empty {
  animation-name: ef-empty-out, ef-ic-bob;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}
.ef.is-demo .ef__row--first .ef__fold {
  animation-name: ef-first-in;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ef.is-demo .ef__row--first .ef__cell {
  animation-name: ef-first-rise;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ef.is-demo .ef__row--first .ef__av {
  animation-name: ef-av-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ef.is-demo .ef__row--second .ef__fold {
  animation-name: ef-second-in;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ef.is-demo .ef__row--second .ef__cell {
  animation-name: ef-second-rise;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ef.is-demo .ef__b--main {
  animation-name: ef-add-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ef.is-demo .ef__phase {
  animation-name: ef-phase-cut;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .ef {
    padding: 8px;
    font-size: 11px;
  }
  .ef__h {
    margin-bottom: 4px;
  }
  .ef__empty {
    padding: 12px 0 4px;
  }
  .ef__ic {
    width: 36px;
    height: 36px;
  }
  .ef__ic svg {
    width: 20px;
    height: 20px;
  }
  .ef__cell {
    padding: 0 8px;
  }
  .ef__b {
    padding: 0 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ef__row.is-in .ef__cell {
    animation: none !important;
  }
  .ef__b:active {
    transform: none;
  }
  .ef.is-demo .ef__empty,
  .ef.is-demo .ef__row .ef__fold,
  .ef.is-demo .ef__row .ef__cell,
  .ef.is-demo .ef__av,
  .ef.is-demo .ef__b--main,
  .ef.is-demo .ef__phase {
    animation: none !important;
    transform: none !important;
  }
  .ef.is-demo .ef__empty {
    visibility: hidden !important;
  }
  .ef.is-demo .ef__row--first .ef__fold,
  .ef.is-demo .ef__row--second .ef__fold {
    grid-template-rows: 1fr !important;
  }
  .ef.is-demo .ef__row .ef__av {
    transform: scale(1) !important;
  }
}
