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

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

.ncol {
  position: relative;
  width: clamp(236px, 82vw, 316px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ncol__mark {
  margin: 0;
  color: #241d2e;
  font-family: Georgia, "Nanum Myeongjo", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(18px, 4.6vw, 24px);
  line-height: 1;
  letter-spacing: 0.22em;
  transform: rotate(-2deg);
}

.ncol__bar {
  position: relative;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 5px 0 rgba(36, 29, 46, 0.16);
}

.ncol__tabs {
  position: relative;
  z-index: 1;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ncol__tab {
  flex: 0 0 var(--tab);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  margin-right: 4px;
}

.ncol__tab:last-child {
  margin-right: 0;
}

.ncol__no {
  color: #241d2e;
  font-family: Georgia, "Nanum Myeongjo", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(10px, 2.4vw, 12px);
  line-height: 1;
}

.ncol__label {
  color: #241d2e;
  font-weight: 700;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1;
}

.ncol__chip {
  position: absolute;
  z-index: 0;
  left: 8px;
  top: 8px;
  width: var(--tab);
  height: calc(100% - 16px);
  border-radius: 4px;
  background: #d1c8a3;
  animation-name: chipHop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.ncol__rule {
  width: 100%;
  height: 3px;
  margin: 0;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #241d2e 0 12px, transparent 12px 20px);
  transform: rotate(1deg);
}

.ncol {
  --tab: 68px;
  --step: 72px;
}

@keyframes chipHop {
  0%, 10% {
    transform: translateX(0) translateY(0) rotate(-3deg);
  }
  13.3% {
    transform: translateX(calc(var(--step) * 0.5)) translateY(-11px) rotate(5deg);
  }
  16.6%, 26.6% {
    transform: translateX(var(--step)) translateY(0) rotate(-3deg);
  }
  30% {
    transform: translateX(calc(var(--step) * 1.5)) translateY(-11px) rotate(5deg);
  }
  33.3%, 43.3% {
    transform: translateX(calc(var(--step) * 2)) translateY(0) rotate(-3deg);
  }
  46.6% {
    transform: translateX(calc(var(--step) * 2.5)) translateY(-11px) rotate(5deg);
  }
  50%, 60% {
    transform: translateX(calc(var(--step) * 3)) translateY(0) rotate(-3deg);
  }
  63.3% {
    transform: translateX(calc(var(--step) * 2.5)) translateY(-11px) rotate(-11deg);
  }
  66.6%, 76.6% {
    transform: translateX(calc(var(--step) * 2)) translateY(0) rotate(-3deg);
  }
  80% {
    transform: translateX(calc(var(--step) * 1.5)) translateY(-11px) rotate(-11deg);
  }
  83.3%, 93.3% {
    transform: translateX(var(--step)) translateY(0) rotate(-3deg);
  }
  96.6% {
    transform: translateX(calc(var(--step) * 0.5)) translateY(-11px) rotate(-11deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(-3deg);
  }
}
@media (max-width: 360px), (max-height: 230px) {
  .ncol {
    width: 232px;
    --tab: 48px;
    --step: 52px;
    gap: 8px;
  }
  .ncol__mark {
    font-size: 15px;
    letter-spacing: 0.14em;
  }
  .ncol__label {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ncol__chip {
    animation: none !important;
    transform: rotate(-3deg);
  }
}
