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

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

.ep {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  justify-content: center;
}

.ep__frame {
  flex: 0 0 auto;
  height: clamp(72px, 34vh, 116px);
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.ep__view {
  display: block;
  width: 100%;
  height: 100%;
}

.ep__panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 152px;
}

.ep__fmts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ep__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.3333333333%;
  height: 100%;
  border: 2px solid #2f6df6;
  border-radius: 8px;
  pointer-events: none;
}

.ep__f {
  width: 100%;
  cursor: pointer;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #17141a;
  font-family: ui-monospace, "Consolas", monospace;
  font-weight: 700;
  font-size: clamp(8px, 2.2vw, 10px);
  line-height: 1.3;
}

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

.ep__q {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep__lab {
  font-weight: 800;
  font-size: clamp(8px, 2.2vw, 10px);
  color: rgba(23, 20, 26, 0.72);
}

.ep__track {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 76px;
  height: 6px;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.18);
}

.ep__track[aria-disabled=true] {
  opacity: 0.42;
}

.ep__track:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 4px;
}

.ep__thumb {
  position: absolute;
  top: 50%;
  left: 71.4%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2f6df6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: translate(-50%, -50%);
}

.ep__size {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.ep__num {
  position: relative;
  font-family: ui-monospace, "Consolas", monospace;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  color: #17141a;
}

.ep__demo {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}

.ep__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  cursor: pointer;
  border: 0;
  background: #17141a;
  color: #fff7e6;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  line-height: 1.3;
  font-size: clamp(8px, 2.2vw, 10px);
  padding: 4px 8px;
}

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

.ep__ico {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.ep__done {
  margin: 0;
  font-weight: 700;
  font-size: clamp(8px, 2.1vw, 10px);
  color: #2f6df6;
}

.ep.is-demo .ep__ring {
  animation-name: epRing;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes epRing {
  0%, 24% {
    transform: translateX(0);
  }
  26%, 48% {
    transform: translateX(100%);
  }
  50%, 84% {
    transform: translateX(200%);
  }
  86%, 100% {
    transform: translateX(0);
  }
}
.ep.is-demo .ep__thumb {
  animation-name: epThumb;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes epThumb {
  0%, 66% {
    transform: translate(-50%, -50%);
  }
  70%, 84% {
    transform: translate(-50%, -50%) translateX(-33px);
  }
  86%, 100% {
    transform: translate(-50%, -50%);
  }
}
.ep.is-demo .ep__real {
  color: transparent;
}

.ep.is-demo .ep__demo {
  display: block;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.ep.is-demo .ep__demo--a {
  animation-name: epSizeA;
}

.ep.is-demo .ep__demo--b {
  animation-name: epSizeB;
}

.ep.is-demo .ep__demo--c {
  animation-name: epSizeC;
}

.ep.is-demo .ep__demo--d {
  animation-name: epSizeD;
}

@keyframes epSizeA {
  0%, 25% {
    opacity: 1;
  }
  26%, 85% {
    opacity: 0;
  }
  86%, 100% {
    opacity: 1;
  }
}
@keyframes epSizeB {
  0%, 25% {
    opacity: 0;
  }
  26%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
@keyframes epSizeC {
  0%, 49% {
    opacity: 0;
  }
  50%, 69% {
    opacity: 1;
  }
  70%, 100% {
    opacity: 0;
  }
}
@keyframes epSizeD {
  0%, 69% {
    opacity: 0;
  }
  70%, 85% {
    opacity: 1;
  }
  86%, 100% {
    opacity: 0;
  }
}
.ep.is-demo .ep__go {
  animation-name: epPress;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes epPress {
  0%, 20% {
    transform: scale(1);
  }
  24% {
    transform: scale(0.93);
  }
  30%, 44% {
    transform: scale(1);
  }
  48% {
    transform: scale(0.93);
  }
  54%, 100% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .ep {
    gap: 8px;
  }
  .ep__panel {
    width: 132px;
  }
  .ep__track {
    width: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ep.is-demo .ep__ring,
  .ep.is-demo .ep__thumb,
  .ep.is-demo .ep__demo,
  .ep.is-demo .ep__go {
    animation: none !important;
  }
  .ep.is-demo .ep__ring {
    transform: translateX(200%) !important;
  }
  .ep.is-demo .ep__demo--a,
  .ep.is-demo .ep__demo--b,
  .ep.is-demo .ep__demo--d {
    opacity: 0 !important;
  }
  .ep.is-demo .ep__demo--c {
    opacity: 1 !important;
  }
}
