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

.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(255, 247, 230, 0.07);
  color: #fff7e6;
  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: #9a93a6;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

.pm button {
  font-family: inherit;
}

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

.pm {
  touch-action: none;
}

.pm__g {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 1px;
  transform-origin: 0 0;
  background: rgba(255, 247, 230, 0.22);
  pointer-events: none;
}

.pm__g[data-hot] {
  background: #4cd4a6;
}

.pm__g:nth-of-type(2), .pm__g:nth-of-type(4) {
  width: 1px;
  height: 2px;
}

.pm__anchor {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #6ec8ff;
  box-shadow: 0 0 0 4px rgba(110, 200, 255, 0.3), 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: grab;
  z-index: 5;
}

.pm__pop {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 116px;
  height: 52px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  z-index: 4;
}

.pm__arrow {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #fff7e6;
}

.pm__side {
  position: relative;
  display: block;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5px;
}

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

@media (prefers-reduced-motion: reduce) {
  .pm__anchor {
    cursor: default;
  }
}
