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

.ns, .ns * {
  box-sizing: border-box;
}

.ns {
  width: min(432px, 94vw);
}

.ns__head {
  position: relative;
  height: 48px;
}

.ns__head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff7e6;
  border-radius: 0 0 8px 8px;
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 220ms ease-out;
}

.ns__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  transform: scale(1);
  transform-origin: left center;
  transition: transform 220ms ease-out;
}

.ns__brand {
  margin: 0;
  color: #17141a;
  font-size: 19px;
  line-height: 24px;
  font-weight: 800;
}

.ns__nav {
  display: flex;
  gap: 12px;
}

.ns__link {
  color: rgba(23, 20, 26, 0.72);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-decoration: none;
}

.ns__head.is-compact::before {
  transform: scaleY(0.62);
}

.ns__head.is-compact .ns__inner {
  transform: scale(0.78);
}

.ns__head.is-compact + .ns__main {
  transform: translateY(-14px);
}

.ns__main {
  transition: transform 220ms ease-out;
}

.ns__feed {
  height: min(200px, 100vh - 104px);
  overflow-y: auto;
  scrollbar-width: none;
}
.ns__feed::-webkit-scrollbar {
  display: none;
}

.ns__sentinel {
  height: 1px;
}

.ns__track {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.ns__card {
  padding: 8px 12px;
  background: #fff7e6;
  border-radius: 8px;
}

.ns__t {
  margin: 0 0 4px;
  color: #17141a;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.ns__bar {
  display: block;
  height: 6px;
  margin-top: 4px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.14);
}

.ns__bar--s {
  width: 72%;
}

.ns.is-demo .ns__track {
  animation-name: ns-scroll;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.ns.is-demo .ns__head::before,
.ns.is-demo .ns__inner,
.ns.is-demo .ns__main {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.ns.is-demo .ns__head::before {
  animation-name: ns-cut-bar;
}

.ns.is-demo .ns__inner {
  animation-name: ns-cut-inner;
}

.ns.is-demo .ns__main {
  animation-name: ns-cut-main;
}

@keyframes ns-scroll {
  0%, 36% {
    transform: translateY(0);
  }
  74%, 78% {
    transform: translateY(-132px);
  }
  88%, 100% {
    transform: translateY(0);
  }
}
@keyframes ns-cut-bar {
  0% {
    transform: scaleY(1);
  }
  40% {
    transform: scaleY(0.62);
  }
  78%, 100% {
    transform: scaleY(1);
  }
}
@keyframes ns-cut-inner {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.78);
  }
  78%, 100% {
    transform: scale(1);
  }
}
@keyframes ns-cut-main {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-14px);
  }
  78%, 100% {
    transform: translateY(0);
  }
}
@media (max-width: 340px) {
  .ns__inner {
    padding: 0 12px;
  }
  .ns__brand {
    font-size: 17px;
    line-height: 22px;
  }
  .ns__nav {
    gap: 8px;
  }
  .ns__link {
    font-size: 11px;
  }
  .ns__card {
    padding: 8px;
  }
  .ns__t {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ns.is-demo .ns__track,
  .ns.is-demo .ns__head::before,
  .ns.is-demo .ns__inner,
  .ns.is-demo .ns__main {
    animation: none !important;
  }
  .ns.is-demo .ns__track {
    transform: none !important;
  }
  .ns__head::before, .ns__inner, .ns__main {
    transition: none !important;
  }
}
