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

.stage {
  position: relative;
}

.fmd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fmd__viewport {
  position: relative;
  width: 245px;
  height: 64px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.05);
  border: 1px solid rgba(23, 20, 26, 0.12);
  touch-action: none;
  overscroll-behavior: contain;
  cursor: grab;
  display: flex;
  align-items: center;
}

.fmd__track {
  display: flex;
  align-items: center;
  gap: 8px;
  will-change: transform;
  padding-left: 12px;
}

.fmd__chip {
  flex: 0 0 auto;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #17141a;
}

.fmd__chip--a {
  background: #4cd4a6;
}

.fmd__chip--b {
  background: #6ec8ff;
}

.fmd__chip--c {
  background: #b9a0ff;
}

.fmd__hint {
  color: rgba(23, 20, 26, 0.72);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 340px) {
  .fmd__viewport {
    width: 196px;
    height: 52px;
  }
  .fmd__chip {
    width: 44px;
    height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fmd__track {
    transition: none !important;
  }
}
