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

.rt {
  position: relative;
  width: min(100%, 320px);
  height: 172px;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}

.rt__star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff7e6;
  animation-name: rtTwinkle;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: both;
}

.rt__star--a {
  left: 10%;
  top: 12%;
}

.rt__star--b {
  left: 30%;
  top: 8%;
  animation-delay: 320ms;
}

.rt__star--c {
  left: 84%;
  top: 16%;
  animation-delay: 640ms;
}

.rt__star--d {
  left: 66%;
  top: 6%;
  animation-delay: 960ms;
}

.rt__sun {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 88px;
  height: 88px;
  margin-left: -44px;
  border-radius: 50%;
  animation-name: rtSunPulse;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.rt__sunball {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #d9c5b3 0%, #d6acbf 100%);
  box-shadow: 0 0 32px rgba(244, 86, 157, 0.55);
}

.rt__sunlines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  border-radius: 0 0 999px 999px;
  overflow: hidden;
  background: repeating-linear-gradient(0deg, transparent 0 9px, #0d0a12 9px 13px);
}

.rt__mount {
  position: absolute;
  top: 84px;
  width: 70px;
  height: 40px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #16101e;
}

.rt__mount--l {
  left: -8px;
}

.rt__mount--r {
  right: -8px;
  width: 54px;
  height: 32px;
}

.rt__floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  perspective: 240px;
  overflow: hidden;
}

.rt__grid {
  position: absolute;
  left: -60%;
  top: -100%;
  width: 220%;
  height: 200%;
  transform: rotateX(58deg);
  transform-origin: top center;
  background: repeating-linear-gradient(90deg, rgba(221, 185, 200, 0.8) 0 2px, transparent 2px 44px), repeating-linear-gradient(0deg, rgba(221, 185, 200, 0.55) 0 2px, transparent 2px 36px);
  animation-name: rtGridFlow;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.rt__palm {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 26px solid #16101e;
}

.rt__palm--big {
  right: 34px;
  top: 72px;
}

.rt__palm--small {
  right: 82px;
  top: 92px;
  transform: scale(0.6);
  transform-origin: top center;
}

.rt__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  margin: 0;
  text-align: center;
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 3px;
  color: #cee6e7;
  text-shadow: 0 0 8px rgba(126, 249, 255, 0.8), 0 0 22px rgba(126, 249, 255, 0.4);
}

.rt__comet {
  position: absolute;
  left: 74%;
  top: 20%;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(270deg, #fff7e6, rgba(255, 247, 230, 0));
  transform: rotate(18deg);
  animation-name: rtCometLoop;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.rt__shot {
  position: absolute;
  left: 22%;
  top: 16%;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  opacity: 0;
  transform: rotate(18deg);
  transition: transform 700ms ease-out, opacity 160ms linear;
}

.rt__streak {
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(270deg, #cee6e7, rgba(126, 249, 255, 0));
}

.rt.is-shot .rt__shot {
  opacity: 1;
  transform: translateX(-96px) translateY(34px) rotate(18deg);
}

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

@keyframes rtSunPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
@keyframes rtGridFlow {
  from {
    transform: rotateX(58deg) translateY(0);
  }
  to {
    transform: rotateX(58deg) translateY(36px);
  }
}
@keyframes rtTwinkle {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
@keyframes rtCometLoop {
  0%, 44% {
    transform: translateX(0) translateY(0) rotate(18deg);
    opacity: 0;
  }
  48% {
    opacity: 1;
  }
  72%, 100% {
    transform: translateX(-88px) translateY(31px) rotate(18deg);
    opacity: 0;
  }
}
.rt:not(.is-demo) .rt__comet {
  animation-name: none;
  opacity: 0;
}

@media (max-width: 340px) {
  .rt {
    height: 136px;
  }
  .rt__sun {
    top: 20px;
    width: 68px;
    height: 68px;
    margin-left: -34px;
  }
  .rt__mount {
    top: 66px;
  }
  .rt__palm--big {
    right: 22px;
    top: 58px;
  }
  .rt__palm--small {
    right: 62px;
    top: 74px;
  }
  .rt__floor {
    height: 48px;
  }
  .rt__title {
    font-size: 16px;
    letter-spacing: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rt__star, .rt__sun, .rt__grid, .rt__comet {
    animation-name: none !important;
  }
  .rt__shot {
    transition: none !important;
  }
}
