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

.pm {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  width: min(100%, 440px);
  height: min(252px, 100vh - 2 * clamp(8px, 4vw, 24px));
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.07);
  color: #17141a;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  user-select: none;
}

.pm b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pm__live {
  position: absolute;
  left: 12px;
  top: 8px;
  margin: 0;
  z-index: 9;
  color: rgba(23, 20, 26, 0.72);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

.pm button {
  font-family: inherit;
}

.pm button:focus-visible {
  outline: 3px solid #17141a;
  outline-offset: 2px;
}

.pm__open {
  box-sizing: border-box;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #b9a0ff;
  color: #17141a;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  cursor: pointer;
}

.pm__open--a {
  position: absolute;
  left: 12px;
  top: 34px;
  width: 64px;
  padding: 0;
  background: #ff9ebb;
  z-index: 8;
}

.pm__open[aria-expanded=true] {
  background: #17141a;
  color: #fff7e6;
}

.pm__pop {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 128px;
  height: 70px;
  padding: 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
  transform-origin: 0 0;
  visibility: hidden;
}

.pm__pop:nth-of-type(1) {
  z-index: 3;
}

.pm__pop:nth-of-type(2) {
  z-index: 4;
}

.pm__pop:nth-of-type(3) {
  z-index: 5;
}

.pm__ttl {
  display: block;
  font-size: 13px;
  line-height: 20px;
}

.pm__txt {
  display: block;
  color: rgba(23, 20, 26, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .pm__open {
    transition: none;
  }
}
