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

.es {
  box-sizing: border-box;
  width: min(280px, 84vw);
  text-align: center;
}

.es__stack {
  position: relative;
  min-height: 128px;
}

.es__empty, .es__item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.es__item {
  flex-direction: row;
  text-align: left;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.06);
  border: 1px solid rgba(255, 247, 230, 0.14);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.es.is-added .es__item {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.es.is-added .es__empty {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.es__box {
  position: relative;
  width: 72px;
  height: 56px;
  margin: 0 auto 12px;
}

.es__shape {
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.14);
  border: 1px solid rgba(255, 247, 230, 0.24);
}

.es__shape--a {
  width: 56px;
  height: 40px;
  left: 8px;
  top: 12px;
  animation: es-float 2s ease-in-out infinite;
}

.es__shape--b {
  width: 22px;
  height: 22px;
  right: 0;
  top: 0;
  border-radius: 50%;
  background: #2f6df6;
  border-color: transparent;
  animation: es-float 2s ease-in-out infinite 0.15s;
}

.es__shape--c {
  width: 30px;
  height: 8px;
  left: 18px;
  bottom: -2px;
  border-radius: 4px;
  animation: es-float 2s ease-in-out infinite 0.3s;
}

@keyframes es-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.es__title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 13px;
  color: #fff7e6;
}

.es__desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 247, 230, 0.58);
}

.es__item-dot {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2f6df6;
  margin-top: 4px;
}

.es__item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.es__item-body strong {
  font-size: 12px;
  color: #fff7e6;
}

.es__item-body span {
  font-size: 10px;
  color: rgba(255, 247, 230, 0.55);
}

.es__add {
  margin-top: 16px;
  border: 1px solid rgba(255, 247, 230, 0.3);
  background: transparent;
  color: #fff7e6;
  padding: 8px 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.es.is-demo .es__empty {
  animation: es-swap-out 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.es.is-demo .es__item {
  animation: es-swap-in 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes es-swap-out {
  0%, 45% {
    opacity: 1;
    transform: scale(1);
  }
  60%, 100% {
    opacity: 0;
    transform: scale(0.9);
  }
}
@keyframes es-swap-in {
  0%, 45% {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
  }
  60%, 100% {
    opacity: 1;
    transform: scale(1);
    pointer-events: none;
  }
}
@media (max-width: 340px) {
  .es__stack {
    min-height: 108px;
  }
  .es__box {
    width: 60px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .es__shape {
    animation: none !important;
  }
  .es.is-demo .es__empty, .es.is-demo .es__item {
    animation: none !important;
  }
  .es__empty, .es__item {
    transition: none;
  }
}
