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

.eb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.eb__frame {
  position: relative;
  width: 236px;
  height: 148px;
  border-radius: 16px;
  overflow: hidden;
  background: #101014;
  touch-action: pan-y;
}

.eb__prev {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fff7e6;
  transform: translateX(-46%);
  opacity: 0.45;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.eb__ptitle {
  font-size: 13px;
  line-height: 16px;
  font-weight: 800;
  color: #17141a;
}

.eb__ln {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.14);
}

.eb__ln:nth-child(3) {
  width: 86%;
}

.eb__ln:nth-child(4) {
  width: 68%;
}

.eb__cur {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #1d1a24;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.eb__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eb__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  border-radius: 50%;
  color: #fff7e6;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.eb__back:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

.eb__ctitle {
  font-size: 12px;
  line-height: 14px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity 220ms steps(1, end);
}

.eb__ctitle.is-on {
  opacity: 1;
}

.eb__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.eb__hero {
  display: block;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(120deg, #2f6df6, #b9a0ff);
}

.eb__cur .eb__ln {
  background: rgba(255, 255, 255, 0.12);
}

.eb__cur .eb__ln:nth-child(3) {
  width: 74%;
}

.eb__edge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, rgba(47, 109, 246, 0.5), transparent);
  pointer-events: none;
}

.eb__hint {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.eb.is-demo .eb__prev {
  animation: eb-prev 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes eb-prev {
  0%, 10% {
    transform: translateX(-46%);
    opacity: 0.45;
  }
  36%, 62% {
    transform: translateX(0);
    opacity: 1;
  }
  86%, 100% {
    transform: translateX(-46%);
    opacity: 0.45;
  }
}
.eb.is-demo .eb__cur {
  animation: eb-cur 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes eb-cur {
  0%, 10% {
    transform: translateX(0);
  }
  36%, 62% {
    transform: translateX(38%);
  }
  86%, 100% {
    transform: translateX(0);
  }
}
.eb.is-demo .eb__ctitle {
  transition: none;
}

.eb.is-demo .eb__ctitle--a {
  animation: eb-ta 2s steps(1, end) infinite;
}

.eb.is-demo .eb__ctitle--b {
  animation: eb-tb 2s steps(1, end) infinite;
}

@keyframes eb-ta {
  0%, 35% {
    opacity: 1;
  }
  36%, 85% {
    opacity: 0;
  }
  86%, 100% {
    opacity: 1;
  }
}
@keyframes eb-tb {
  0%, 35% {
    opacity: 0;
  }
  36%, 85% {
    opacity: 1;
  }
  86%, 100% {
    opacity: 0;
  }
}
.eb.is-demo .eb__edge {
  animation: eb-edge 2s ease-in-out infinite;
}

@keyframes eb-edge {
  0%, 6% {
    opacity: 1;
  }
  14%, 62% {
    opacity: 0;
  }
  86%, 100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eb.is-demo .eb__prev,
  .eb.is-demo .eb__cur,
  .eb.is-demo .eb__ctitle,
  .eb.is-demo .eb__edge {
    animation: none !important;
  }
  .eb__prev, .eb__cur {
    transition: none;
  }
}
