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

.stage * {
  box-sizing: border-box;
}

.sr {
  position: relative;
  overflow: hidden;
  width: min(360px, 94vw);
  background: #17141a;
  color: #fff7e6;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.sr__vp {
  height: 132px;
  overflow-y: auto;
  padding: 12px 16px 24px;
}

.sr__track {
  --sc: -140px;
}

.sr__h {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  font-family: inherit;
}

.sr__p {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255, 247, 230, 0.76);
  font-family: inherit;
}

.sr__p--mark {
  position: relative;
  display: inline-block;
  padding: 0 4px;
  color: #17141a;
  background: #ffd23f;
  border-radius: 4px;
  font-weight: 700;
}

.sr__hl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 4px;
  background: #2f6df6;
  transform: scaleX(0);
  transform-origin: left center;
}

.sr__ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #2f6df6;
  color: #ffffff;
  transform: translateY(110%);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sr__ribbon.is-up {
  transform: translateY(0);
}

.sr__ribbon-t {
  flex: 1 1 auto;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  font-family: inherit;
}

.sr__arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.sr__close {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
}

.sr__again {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  font-family: inherit;
  cursor: pointer;
}

.sr__again[hidden] {
  display: none;
}

.sr__close:focus-visible, .sr__again:focus-visible, .sr__vp:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.sr__msg {
  margin: 8px 0 0;
  min-height: 13px;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.6);
  font-family: inherit;
}

.is-demo .sr__track {
  animation: sr-scroll 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes sr-scroll {
  0% {
    transform: translateY(0);
  }
  34%, 86% {
    transform: translateY(var(--sc));
  }
  96%, 100% {
    transform: translateY(0);
  }
}
.is-demo .sr__ribbon {
  animation: sr-rise 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1 both;
}

@keyframes sr-rise {
  0%, 38% {
    transform: translateY(110%);
  }
  41%, 100% {
    transform: translateY(0);
  }
}
.is-demo .sr__msg {
  animation: sr-msg 2s steps(1, end) 1 both;
}

@keyframes sr-msg {
  0%, 40% {
    opacity: 0;
  }
  41%, 100% {
    opacity: 1;
  }
}
.is-demo .sr__hl {
  animation: sr-hl 2s ease-out infinite;
}

@keyframes sr-hl {
  0%, 30% {
    transform: scaleX(0);
  }
  52%, 100% {
    transform: scaleX(1);
  }
}
.is-demo .sr__arrow {
  animation: sr-nudge 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes sr-nudge {
  0%, 56%, 100% {
    transform: translateX(0);
  }
  64% {
    transform: translateX(5px);
  }
  72% {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sr__ribbon, .is-demo .sr__ribbon, .is-demo .sr__track, .is-demo .sr__hl, .is-demo .sr__arrow, .is-demo .sr__msg {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .sr__ribbon {
    transform: translateY(0) !important;
  }
  .is-demo .sr__msg {
    opacity: 1 !important;
  }
  .is-demo .sr__hl {
    transform: scaleX(1) !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .sr {
    width: min(288px, 92vw);
  }
  .sr__vp {
    height: 92px;
    padding: 8px 12px 20px;
  }
  .sr__track {
    --sc: -96px;
  }
  .sr__h {
    margin: 0 0 4px;
    font-size: 11px;
  }
  .sr__p {
    margin: 0 0 8px;
    font-size: 9px;
    line-height: 1.6;
  }
  .sr__ribbon {
    gap: 4px;
    padding: 4px 8px;
  }
  .sr__ribbon-t {
    font-size: 10px;
  }
  .sr__again {
    right: 8px;
    bottom: 8px;
    padding: 0 8px;
    font-size: 9px;
  }
  .sr__msg {
    margin: 4px 0 0;
    min-height: 0;
    font-size: 9px;
  }
}
