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

.rm {
  width: 100%;
  max-width: 420px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.rm__panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rm__caption {
  font-size: 11px;
  font-weight: 700;
  color: #17141a;
  margin: 0;
}

.rm__track {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: #5b8cf8;
  border-radius: 16px;
  padding: 8px 0;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.rm__panel[data-role=reduced] .rm__track {
  background: #4cd4a6;
}

.rm__indicator {
  position: absolute;
  left: 0;
  top: 6px;
  border-radius: 999px;
  background: #fff7e6;
  will-change: transform;
}

.rm__tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px;
  color: rgba(23, 20, 26, 0.72);
  transition: color 0.15s ease;
}

.rm__tab.is-active {
  color: #0a4fe8;
}

.rm__icon {
  width: 16px;
  height: 16px;
}

.rm__label {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

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

@media (max-width: 340px) {
  .rm {
    gap: 8px;
  }
  .rm__tab {
    padding: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rm__tab {
    transition: none;
  }
}
