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

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

.stage {
  position: relative;
}

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

.rpn__frame {
  width: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(23, 20, 26, 0.06);
  border: 1px solid rgba(23, 20, 26, 0.14);
}

.rpn__nav {
  height: 34px;
  background: #0a4fe8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transform-origin: center top;
  will-change: transform;
}

.rpn__viewport {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  cursor: grab;
  box-sizing: border-box;
}

.rpn__track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.rpn__row {
  height: 40px;
  margin: 0 12px;
  border-radius: 12px;
  background: rgba(23, 20, 26, 0.07);
  color: #17141a;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 12px;
  box-sizing: border-box;
}

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

@media (max-width: 340px) {
  .rpn {
    gap: 8px;
  }
  .rpn__frame {
    width: 176px;
  }
  .rpn__nav {
    height: 26px;
    font-size: 11px;
  }
  .rpn__viewport {
    height: 80px;
  }
  .rpn__row {
    height: 30px;
  }
  .rpn__hint {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rpn__nav {
    transition: none !important;
  }
}
