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

.pm {
  box-sizing: border-box;
  width: min(248px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.pm__panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 96px;
  padding: 12px;
  border: 1px solid rgba(23, 20, 26, 0.12);
  border-radius: 16px;
  overflow: hidden;
}

.pm__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  filter: blur(3px);
}

.pm__row {
  height: 12px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.26);
}

.pm__row:nth-child(2) {
  width: 78%;
}

.pm__row:nth-child(3) {
  width: 56%;
}

.pm__gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.62);
}

.pm__lock {
  display: block;
  font-size: 32px;
  line-height: 0;
  color: rgba(23, 20, 26, 0.74);
}

.pm__msg {
  margin: 0;
  padding: 0 8px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  text-align: center;
}

.pm__btn {
  height: 28px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.pm__btn:disabled {
  opacity: 0.56;
  cursor: default;
}

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

.pm.is-demo .pm__lock {
  animation: pm-knock 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes pm-knock {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  30% {
    transform: scale(1.22) translateY(-4px);
  }
  46% {
    transform: scale(1) translateY(0);
  }
  58% {
    transform: scale(1.1) translateY(-2px);
  }
}
.pm.is-demo .pm__rows {
  animation: pm-veil 2s ease-in-out infinite;
}

@keyframes pm-veil {
  0%, 100% {
    filter: blur(3px);
    opacity: 1;
  }
  50% {
    filter: blur(6px);
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pm.is-demo .pm__lock,
  .pm.is-demo .pm__rows {
    animation: none !important;
  }
}
