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

.rs {
  position: relative;
  box-sizing: border-box;
  width: 264px;
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.rs__grid {
  position: relative;
  border: 1px solid rgb(21.7568627451%, 20.3058823529%, 21.3960784314%);
  border-radius: 12px;
  background: #17141a;
  overflow: hidden;
}

.rs__row {
  display: grid;
  grid-template-columns: repeat(4, 66px);
  height: 26px;
}

.rs__row + .rs__row {
  border-top: 1px solid rgba(255, 247, 230, 0.07);
}

.rs__row > * {
  padding: 0 8px;
  font-size: 12px;
  line-height: 26px;
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  white-space: nowrap;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rs__row--head {
  background: rgb(16.2980392157%, 14.9647058824%, 16.5960784314%);
}

.rs__row--head > * {
  color: rgba(255, 247, 230, 0.56);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.rs__row > .is-sel {
  background: rgba(110, 200, 255, 0.22);
}

.rs__box {
  position: absolute;
  left: 0;
  top: 0;
  width: 66px;
  height: 26px;
  border: 2px solid #6ec8ff;
  border-radius: 4px;
  opacity: 0;
  transform-origin: left top;
  transform: translate(0, 26px) scale(1, 1);
  pointer-events: none;
}

.rs__foot {
  position: relative;
  height: 20px;
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 20px;
  font-weight: 600;
}

.rs__s0, .rs__s1, .rs__s2, .rs__s3 {
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 247, 230, 0.62);
}

.rs__s1, .rs__s2, .rs__s3 {
  opacity: 0;
  color: #6ec8ff;
}

.rs__toast {
  position: absolute;
  right: 0;
  bottom: 24px;
  opacity: 0;
}

.rs.is-copied .rs__toast {
  opacity: 1;
}

.rs__toast-in {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: #4cd4a6;
  color: #17141a;
  font-size: 11px;
  line-height: 20px;
  font-weight: 700;
  transform: translateY(0);
}

.rs__ic {
  display: inline-flex;
  width: 12px;
  height: 12px;
}

.rs.is-demo .rs__box {
  animation-name: rs-box;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.rs.is-demo .rs__row > b {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.rs.is-demo .rs__row:nth-child(2) > b:nth-child(1) {
  animation-name: rs-lit-a;
}

.rs.is-demo .rs__row:nth-child(2) > b:nth-child(2),
.rs.is-demo .rs__row:nth-child(3) > b:nth-child(1),
.rs.is-demo .rs__row:nth-child(3) > b:nth-child(2) {
  animation-name: rs-lit-b;
}

.rs.is-demo .rs__row:nth-child(2) > b:nth-child(3),
.rs.is-demo .rs__row:nth-child(3) > b:nth-child(3),
.rs.is-demo .rs__row:nth-child(4) > b:nth-child(1),
.rs.is-demo .rs__row:nth-child(4) > b:nth-child(2),
.rs.is-demo .rs__row:nth-child(4) > b:nth-child(3) {
  animation-name: rs-lit-c;
}

.rs.is-demo .rs__s0 {
  animation-name: rs-hide;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.rs.is-demo .rs__s1 {
  animation-name: rs-s1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.rs.is-demo .rs__s2 {
  animation-name: rs-s2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.rs.is-demo .rs__s3 {
  animation-name: rs-s3;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.rs.is-demo .rs__toast {
  animation-name: rs-toast;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.rs.is-demo .rs__toast-in {
  animation-name: rs-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes rs-box {
  0% {
    opacity: 0;
    transform: translate(0, 26px) scale(1, 1);
  }
  10% {
    opacity: 1;
    transform: translate(0, 26px) scale(1, 1);
  }
  44% {
    opacity: 1;
    transform: translate(0, 26px) scale(3, 3);
  }
  76% {
    opacity: 1;
    transform: translate(0, 26px) scale(3, 3);
  }
  80% {
    opacity: 1;
    transform: translate(0, 26px) scale(2, 2);
  }
  84% {
    opacity: 1;
    transform: translate(0, 26px) scale(1, 1);
  }
  86% {
    opacity: 0;
    transform: translate(0, 26px) scale(1, 1);
  }
  100% {
    opacity: 0;
    transform: translate(0, 26px) scale(1, 1);
  }
}
@keyframes rs-lit-a {
  0% {
    background: none;
  }
  10% {
    background: rgba(110, 200, 255, 0.22);
  }
  86% {
    background: none;
  }
  100% {
    background: none;
  }
}
@keyframes rs-s1 {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  26% {
    opacity: 0;
  }
  82% {
    opacity: 1;
  }
  86% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rs-lit-b {
  0% {
    background: none;
  }
  26% {
    background: rgba(110, 200, 255, 0.22);
  }
  81% {
    background: none;
  }
  100% {
    background: none;
  }
}
@keyframes rs-lit-c {
  0% {
    background: none;
  }
  40% {
    background: rgba(110, 200, 255, 0.22);
  }
  78% {
    background: none;
  }
  100% {
    background: none;
  }
}
@keyframes rs-hide {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 0;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes rs-s2 {
  0% {
    opacity: 0;
  }
  26% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  78% {
    opacity: 1;
  }
  82% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rs-s3 {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  78% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rs-toast {
  0% {
    opacity: 0;
  }
  62% {
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rs-pop {
  0% {
    transform: translateY(10px);
  }
  62% {
    transform: translateY(10px);
  }
  70% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@media (max-width: 340px) {
  .rs__foot {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rs.is-demo .rs__box,
  .rs.is-demo .rs__row > b,
  .rs.is-demo .rs__s0,
  .rs.is-demo .rs__s1,
  .rs.is-demo .rs__s2,
  .rs.is-demo .rs__s3,
  .rs.is-demo .rs__toast,
  .rs.is-demo .rs__toast-in {
    animation: none !important;
  }
  .rs.is-demo .rs__box {
    opacity: 1;
    transform: translate(0, 26px) scale(3, 3);
  }
  .rs.is-demo .rs__s0 {
    opacity: 0;
  }
  .rs.is-demo .rs__s3 {
    opacity: 1;
  }
  .rs__row > * {
    transition: none;
  }
}
