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 {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  justify-content: center;
}

.rm__col {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.rm__tag {
  font-size: 9px;
  font-weight: 700;
  color: #5b8cf8;
}

.rm__mini {
  position: relative;
  width: 108px;
}

.rm__field {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 4px 8px;
  background: #fff7e6;
  color: #17141a;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.rm__pop {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  box-sizing: border-box;
  padding: 4px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
  pointer-events: none;
}

.rm__pop--normal {
  transform: scale(0.8);
  transform-origin: top center;
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease-out;
}

.rm__pop--normal.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.rm__pop--reduced {
  transition: opacity 220ms ease-out;
}

.rm__pop--reduced.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rm__popRow {
  font-size: 9px;
  color: #17141a;
  text-align: center;
  letter-spacing: 0.04em;
}

.rm__popRow b {
  color: #0a4fe8;
}

@media (max-width: 340px) {
  .rm {
    max-width: 200px;
    gap: 4px;
  }
  .rm__mini {
    width: 84px;
  }
  .rm__field {
    font-size: 9px;
  }
  .rm__popRow {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rm__pop--normal {
    transform: none;
    transition: opacity 220ms ease-out;
  }
}
