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

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

.rm {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rm__row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7e6;
  border-radius: 12px;
  padding: 4px 4px 4px 12px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.rm__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 500;
  font-size: 13px;
  color: #17141a;
}

.rm__switch {
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.24);
  padding: 4px;
  cursor: pointer;
  transition: background-color 300ms ease-out;
}

.rm__knob {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff7e6;
  transform: translateX(0);
  transition: transform 300ms ease-out;
}

.is-reduced .rm__switch {
  background: #5b8cf8;
}

.is-reduced .rm__knob {
  transform: translateX(14px);
}

.rm__list {
  margin: 0;
  padding: 4px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff7e6;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  min-height: 40px;
}

.rm__item {
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 12px;
  color: #17141a;
  background: #5b8cf8;
  opacity: 0;
  transform: translateY(16px);
  transition-property: opacity, transform, background-color;
  transition-duration: 300ms;
  transition-timing-function: ease-out;
  transition-delay: var(--delay, 0ms);
}

.is-open .rm__item {
  opacity: 1;
  transform: translateY(0);
  background: #fff7e6;
}

.is-reduced .rm__item {
  transition-duration: 140ms;
}

@media (max-width: 340px) {
  .rm {
    max-width: 240px;
  }
  .rm__input {
    font-size: 12px;
  }
  .rm__list {
    max-height: 116px;
    overflow-y: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rm__item {
    transition: none !important;
  }
}
