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

.it {
  display: flex;
  gap: 24px;
  padding: 12px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.it__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 4px;
  color: rgba(255, 247, 230, 0.75);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.it__icon {
  position: relative;
  z-index: 1;
  transform: scale(1);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
  color: inherit;
}

.it__label {
  font-weight: 600;
  font-size: clamp(10px, 2.8vw, 11px);
  line-height: 1;
  font-family: inherit;
  opacity: 1;
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.it__tab[aria-selected=true] {
  color: #fff7e6;
}

.it__tab[aria-selected=true] .it__icon {
  transform: scale(1.18);
}

.it__tab[aria-selected=true] .it__label {
  opacity: 1;
}

.it__tab::before {
  content: "";
  position: absolute;
  top: calc(4px + 11px);
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(255, 247, 230, 0.2);
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}

.it.is-demo .it__tab:nth-child(1) .it__icon {
  animation: it-bump 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.it.is-demo .it__tab:nth-child(2) .it__icon {
  animation: it-bump 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
  animation-delay: -1.3333333333s;
}

.it.is-demo .it__tab:nth-child(3) .it__icon {
  animation: it-bump 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
  animation-delay: -0.6666666667s;
}

@keyframes it-bump {
  0%, 8%, 100% {
    transform: scale(1);
  }
  4% {
    transform: scale(1.18);
  }
}
.it.is-demo .it__tab:nth-child(1)::before {
  animation: it-trail-loop 2s ease-out infinite;
}

.it.is-demo .it__tab:nth-child(2)::before {
  animation: it-trail-loop 2s ease-out infinite;
  animation-delay: -1.3333333333s;
}

.it.is-demo .it__tab:nth-child(3)::before {
  animation: it-trail-loop 2s ease-out infinite;
  animation-delay: -0.6666666667s;
}

@keyframes it-trail-loop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  2% {
    transform: scale(1.1);
    opacity: 0.2;
  }
  6% {
    transform: scale(1.25);
    opacity: 0.16;
  }
  12%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .it__icon, .it__label {
    transition: none;
  }
  .it.is-demo .it__tab .it__icon,
  .it.is-demo .it__tab::before {
    animation: none !important;
  }
  .it__tab::before {
    opacity: 0;
  }
}
