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

.tabs {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.tabs__hint {
  margin: 0;
  padding: 0 8px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
}

.tabs__bar {
  position: relative;
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  padding-bottom: 8px;
}

.tabs__tab {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: none;
  padding: 4px 0;
  font-weight: 500;
  font-size: 13px;
  color: rgba(23, 20, 26, 0.72);
  cursor: pointer;
}

.tabs__tab[aria-selected=true] {
  color: #17141a;
  font-weight: 700;
}

.tabs__count {
  display: inline-block;
  margin-left: 4px;
  font-weight: 700;
  font-size: 11px;
  color: #17141a;
}

.tabs__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--iw, 0px);
  border-radius: 999px;
  background: #17141a;
  transform: translateX(var(--ix, 0px));
  transition: transform 220ms ease-out, width 220ms ease-out;
}

.tabs__panel {
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: 34px;
}

.tabs__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.tabs__panel.is-in .tabs__chip {
  opacity: 1;
  transform: scale(1);
}

.tabs__cv {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

@media (max-width: 340px) {
  .tabs {
    max-width: 300px;
    gap: 8px;
  }
  .tabs__hint {
    font-size: 9px;
  }
  .tabs__bar {
    gap: 8px;
  }
  .tabs__tab {
    font-size: 11px;
  }
  .tabs__cv {
    width: 18px;
    height: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tabs__indicator,
  .tabs__chip {
    transition: none;
  }
  .tabs__chip {
    opacity: 1;
    transform: none;
  }
}
