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

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

.tn {
  width: min(100%, 320px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.tn__strip {
  display: flex;
  gap: 4px;
}

.tn__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(23, 20, 26, 0.18);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease-out;
}

.tn__swatch--t0 {
  background: #dccbb8;
}

.tn__swatch--t1 {
  background: #ffe0c4;
}

.tn__swatch--t2 {
  background: #eae1d5;
}

.tn__swatch--t3 {
  background: #d29b6a;
}

.tn__swatch--t4 {
  background: #a86f43;
}

.tn__swatch--t5 {
  background: #6b4527;
}

.tn__swatch[aria-checked=true] {
  transform: scale(1.18);
  box-shadow: inset 0 0 0 2px #17141a, 0 0 0 3px #fff7e6;
}

.tn__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
}

.tn__item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 20, 26, 0.06);
  border-radius: 8px;
  padding: 4px;
}

.tn__ch {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}

.tn__ch--swap {
  animation: tnPop 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.tn__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

@keyframes tnPop {
  0% {
    opacity: 0.35;
    transform: scale(0.72);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .tn {
    width: 100%;
  }
  .tn__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .tn__ch {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tn__swatch {
    transition: none;
  }
  .tn__ch--swap {
    animation: none;
  }
}
