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

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

.rp {
  display: grid;
  justify-items: center;
  gap: 12px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.rp__btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #17141a;
  color: #fff7e6;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition: transform 140ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.rp__btn:focus-visible {
  outline: 3px solid #fff7e6;
  outline-offset: 3px;
}

.rp__btn:active {
  transform: scale(0.93);
}

.rp__ic {
  display: inline-flex;
}

.rp__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d1f;
}

.rp__wave,
.rp__seed {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 247, 230, 0.5);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

@keyframes rp-grow {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.55;
  }
  70% {
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(9);
    opacity: 0;
  }
}
.rp__wave {
  animation-name: rp-grow;
  animation-duration: 600ms;
  animation-timing-function: ease-out;
  animation-iteration-count: 1;
}

.rp__hint {
  margin: 0;
  color: #17141a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.rp__seed {
  --x: 30%;
  --y: 34%;
}

.rp__seed.rp__seed--b {
  --x: 62%;
  --y: 66%;
}

@keyframes rp-seed-a {
  0%, 16% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  17% {
    opacity: 0.55;
  }
  17.01% {
    transform: translate(-50%, -50%) scale(0);
  }
  46%, 100% {
    transform: translate(-50%, -50%) scale(9);
    opacity: 0;
  }
}
@keyframes rp-seed-b {
  0%, 56% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  57% {
    opacity: 0.55;
  }
  57.01% {
    transform: translate(-50%, -50%) scale(0);
  }
  86%, 100% {
    transform: translate(-50%, -50%) scale(9);
    opacity: 0;
  }
}
@keyframes rp-press {
  0%, 15% {
    transform: scale(1);
  }
  18% {
    transform: scale(0.93);
  }
  26%, 55% {
    transform: scale(1);
  }
  58% {
    transform: scale(0.93);
  }
  66%, 100% {
    transform: scale(1);
  }
}
.rp.is-demo .rp__seed:not(.rp__seed--b) {
  animation-name: rp-seed-a;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.rp.is-demo .rp__seed--b {
  animation-name: rp-seed-b;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.rp.is-demo .rp__btn {
  animation-name: rp-press;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .rp__btn {
    width: 76px;
    height: 76px;
    font-size: 36px;
  }
  .rp__hint {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rp.is-demo .rp__seed,
  .rp.is-demo .rp__btn {
    animation: none !important;
    transform: none !important;
  }
  .rp__wave {
    animation: none !important;
    opacity: 0 !important;
  }
  .rp__seed {
    opacity: 0 !important;
  }
}
