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

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

.tk {
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tk__tabs {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}

.tk__tabs::-webkit-scrollbar {
  display: none;
}

.tk__underline {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 4px;
  background: #c93000;
  transform: translateX(var(--x, 0px));
  width: var(--w, 40px);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tk__tab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  color: rgba(23, 20, 26, 0.56);
  cursor: pointer;
}

.tk__tab[aria-selected=true] {
  color: #17141a;
}

.tk__tab:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.tk__panel {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  color: #17141a;
}

@media (max-width: 340px) {
  .tk__tabs {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tk__underline {
    transition: none !important;
  }
}
