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

.stage {
  padding: clamp(10px, 4vw, 28px);
}

.p {
  max-width: 260px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  font-family: inherit;
  color: #fff7e6;
  margin: 0;
}

.p__link {
  position: relative;
  color: #5b8cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
  padding: 2px 3px;
  margin: -2px -3px;
  border-radius: 4px;
  background: transparent;
  transition: background 140ms ease-out;
}
.p__link::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(47, 109, 246, 0.4), inset 0 0 0 0 rgba(47, 109, 246, 0.22);
  opacity: 0;
  pointer-events: none;
}

.p__link:active {
  background: rgba(47, 109, 246, 0.32);
  transition: background 0s;
}

.p__link:active::after {
  animation: ripple-wave 140ms ease-out;
}

.p__link.is-demo {
  animation: link-flash 2s cubic-bezier(0, 0, 1, 1) infinite;
}

.p__link.is-demo::after {
  animation: ripple-loop 2s cubic-bezier(0, 0, 1, 1) infinite;
}

@keyframes link-flash {
  0% {
    background: rgba(47, 109, 246, 0.62);
  }
  35% {
    background: rgba(47, 109, 246, 0);
  }
  100% {
    background: rgba(47, 109, 246, 0);
  }
}
@keyframes ripple-wave {
  0% {
    box-shadow: inset 0 0 0 0 rgba(47, 109, 246, 0.4), inset 0 0 0 0 rgba(47, 109, 246, 0.22);
    opacity: 1;
  }
  100% {
    box-shadow: inset 0 0 0 6px rgba(47, 109, 246, 0), inset 0 0 0 4px rgba(47, 109, 246, 0);
    opacity: 0;
  }
}
@keyframes ripple-loop {
  0% {
    box-shadow: inset 0 0 0 0 rgba(47, 109, 246, 0.4), inset 0 0 0 0 rgba(47, 109, 246, 0.22);
    opacity: 1;
  }
  35% {
    box-shadow: inset 0 0 0 6px rgba(47, 109, 246, 0), inset 0 0 0 4px rgba(47, 109, 246, 0);
    opacity: 0;
  }
  100% {
    box-shadow: inset 0 0 0 6px rgba(47, 109, 246, 0), inset 0 0 0 4px rgba(47, 109, 246, 0);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p__link {
    transition: none;
  }
  .p__link::after {
    animation: none !important;
    opacity: 0;
  }
  .p__link.is-demo {
    animation: none;
  }
}
