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

.nx {
  box-sizing: border-box;
  width: min(300px, 92vw);
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  overflow: hidden;
}

.nx__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 0;
}

.nx__title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.nx__state {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: #c93000;
  font-weight: 700;
}

.nx__view {
  box-sizing: border-box;
  height: 168px;
  margin: 8px 8px 12px;
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}
.nx__view::-webkit-scrollbar {
  display: none;
}
.nx__view:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.nx__pad {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 8px 4px 64px;
}

.nx__p {
  margin: 0;
  justify-self: start;
  font-size: 11px;
  line-height: 1.55;
}

.nx__pull {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin-top: 8px;
}

.nx__ring {
  position: absolute;
  inset: 0;
}

.nx__ring svg {
  width: 108px;
  height: 108px;
  transform: rotate(-90deg);
}

.nx__track,
.nx__fill {
  fill: none;
  stroke-width: 6;
}

.nx__track {
  stroke: rgba(23, 20, 26, 0.12);
}

.nx__fill {
  stroke: #2f6df6;
  stroke-linecap: round;
  stroke-dasharray: 263.9;
  stroke-dashoffset: 263.9;
}

.nx__labels {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  text-align: center;
}

.nx__l {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  color: #17141a;
  opacity: 0;
}

.nx__l svg {
  font-size: 14px;
  color: #2f6df6;
}

.nx__l--0 {
  opacity: 1;
}

.nx--next .nx__l--0 {
  opacity: 0;
}

.nx--next .nx__l--1 {
  opacity: 1;
  color: #2f6df6;
}

@keyframes nx-draw {
  0%, 30% {
    stroke-dashoffset: 263.9;
  }
  78%, 88% {
    stroke-dashoffset: 0;
  }
  90%, 100% {
    stroke-dashoffset: 263.9;
  }
}
@keyframes nx-l0 {
  0%, 78% {
    opacity: 1;
  }
  80%, 88% {
    opacity: 0;
  }
  89%, 100% {
    opacity: 1;
  }
}
@keyframes nx-l1 {
  0%, 78% {
    opacity: 0;
    transform: scale(0.92);
  }
  80% {
    opacity: 1;
    transform: scale(1.04);
  }
  84%, 88% {
    opacity: 1;
    transform: scale(1);
  }
  89%, 100% {
    opacity: 0;
    transform: scale(0.92);
  }
}
@keyframes nx-say {
  0%, 77% {
    opacity: 0.3;
  }
  80%, 88% {
    opacity: 1;
  }
  89%, 100% {
    opacity: 0.3;
  }
}
.nx.is-demo .nx__fill {
  animation-name: nx-draw;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}
.nx.is-demo .nx__l--0 {
  animation-name: nx-l0;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.nx.is-demo .nx__l--1 {
  animation-name: nx-l1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.nx.is-demo .nx__state {
  animation-name: nx-say;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .nx__view {
    height: 128px;
  }
  .nx__pull {
    width: 96px;
    height: 96px;
  }
  .nx__ring svg {
    width: 96px;
    height: 96px;
  }
  .nx__labels {
    width: 72px;
    height: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx.is-demo .nx__fill,
  .nx.is-demo .nx__l,
  .nx.is-demo .nx__state {
    animation: none !important;
  }
  .nx.is-demo .nx__fill {
    stroke-dashoffset: 132 !important;
  }
  .nx.is-demo .nx__l--0 {
    opacity: 1 !important;
  }
  .nx.is-demo .nx__l--1 {
    opacity: 0 !important;
  }
}
