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

.stage {
  overflow: hidden;
}

.ioc {
  width: min(360px, 90vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(23, 20, 26, 0.06);
}
.ioc__logo {
  color: #17141a;
  font-weight: 800;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.04em;
}
.ioc__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ioc__item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #17141a;
}

.ioc__icon {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #17141a;
}
.ioc__icon--home {
  border-radius: 50%;
}
.ioc__icon--search {
  border-radius: 999px;
  width: 14px;
}
.ioc__icon--save {
  border-radius: 4px;
}

.ioc__label {
  overflow: hidden;
  white-space: nowrap;
  max-width: 40px;
  transform-origin: left center;
  font-weight: 500;
  font-size: clamp(12px, 3.4vw, 13px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  transition: max-width 300ms linear(0, 0.22, 0.392, 0.525, 0.63, 0.711, 0.775, 0.824, 0.863, 0.893, 0.917, 0.935, 0.949, 0.96, 0.969, 0.976, 0.981, 0.985, 0.989, 0.991, 0.993, 0.995, 1), transform 300ms linear(0, 0.22, 0.392, 0.525, 0.63, 0.711, 0.775, 0.824, 0.863, 0.893, 0.917, 0.935, 0.949, 0.96, 0.969, 0.976, 0.981, 0.985, 0.989, 0.991, 0.993, 0.995, 1), opacity 300ms linear(0, 0.22, 0.392, 0.525, 0.63, 0.711, 0.775, 0.824, 0.863, 0.893, 0.917, 0.935, 0.949, 0.96, 0.969, 0.976, 0.981, 0.985, 0.989, 0.991, 0.993, 0.995, 1);
}

.ioc.is-scrolled .ioc__label {
  max-width: 0;
  transform: scaleX(0);
  opacity: 0;
}

.ioc.is-demo .ioc__label {
  animation: ioc-label-loop 2s linear(0, 0.22, 0.392, 0.525, 0.63, 0.711, 0.775, 0.824, 0.863, 0.893, 0.917, 0.935, 0.949, 0.96, 0.969, 0.976, 0.981, 0.985, 0.989, 0.991, 0.993, 0.995, 1) infinite;
}

@keyframes ioc-label-loop {
  0%, 20% {
    max-width: 40px;
    transform: scaleX(1);
    opacity: 1;
  }
  45%, 70% {
    max-width: 0;
    transform: scaleX(0);
    opacity: 0;
  }
  95%, 100% {
    max-width: 40px;
    transform: scaleX(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ioc__label {
    transition: none;
  }
  .ioc.is-demo .ioc__label {
    animation: none !important;
    max-width: 40px;
    transform: scaleX(1);
    opacity: 1;
  }
}
