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

.gh {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(100%, 320px);
}

.gh__hero {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 164px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 22% 55%, rgba(88, 44, 136, 0.55) 0%, rgba(88, 44, 136, 0) 46%), radial-gradient(circle at 0% 0%, rgba(30, 40, 90, 0.5) 0%, rgba(30, 40, 90, 0) 42%), #0b0b21;
}

.gh__bloom {
  position: absolute;
  left: 8%;
  top: 30%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 92, 214, 0.5) 0%, rgba(138, 92, 214, 0) 66%);
  animation-name: ghBreathe;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.gh__swirl {
  position: absolute;
  right: -70px;
  top: -46px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(138, 92, 214, 0.5) 0 14deg, rgba(138, 92, 214, 0) 14deg 42deg);
  -webkit-mask-image: radial-gradient(circle, rgb(0, 0, 0) 0 52%, rgba(0, 0, 0, 0) 74%);
  mask-image: radial-gradient(circle, rgb(0, 0, 0) 0 52%, rgba(0, 0, 0, 0) 74%);
  filter: blur(6px);
  animation-name: ghSwirl;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.gh.is-rev .gh__swirl {
  animation-direction: alternate-reverse;
}

.gh__haze {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 22%;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(30, 40, 90, 0), rgba(90, 70, 160, 0.4), rgba(30, 40, 90, 0));
  animation-name: ghDrift;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.gh__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30%;
  height: 2px;
  background: linear-gradient(90deg, rgba(126, 249, 255, 0), rgba(126, 249, 255, 0.5), rgba(126, 249, 255, 0));
}

.gh__dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(126, 249, 255, 0.8);
  animation-name: ghRise;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.gh__dot--a {
  left: 16%;
  bottom: 10%;
}

.gh__dot--b {
  left: 34%;
  bottom: 4%;
  animation-delay: 400ms;
}

.gh__dot--c {
  left: 52%;
  bottom: 12%;
  animation-delay: 800ms;
}

.gh__dot--d {
  left: 68%;
  bottom: 6%;
  animation-delay: 1200ms;
  background: rgba(255, 210, 63, 0.8);
}

.gh__dot--e {
  left: 84%;
  bottom: 16%;
  animation-delay: 1600ms;
}

.gh__tag {
  position: absolute;
  left: 16px;
  bottom: 12px;
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 3px;
  color: #fff7e6;
  text-shadow: 0 0 12px rgba(138, 92, 214, 0.9);
}

.gh__btn {
  box-sizing: border-box;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

@keyframes ghBreathe {
  from {
    transform: scale(0.92);
    opacity: 0.7;
  }
  to {
    transform: scale(1.08);
    opacity: 1;
  }
}
@keyframes ghSwirl {
  from {
    rotate: -14deg;
  }
  to {
    rotate: 14deg;
  }
}
@keyframes ghDrift {
  from {
    transform: translateX(-14px);
  }
  to {
    transform: translateX(14px);
  }
}
@keyframes ghRise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  18% {
    opacity: 0.9;
  }
  86%, 100% {
    transform: translateY(-96px);
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .gh__hero {
    height: 128px;
  }
  .gh__swirl {
    width: 170px;
    height: 170px;
    right: -56px;
    top: -38px;
  }
  .gh__btn {
    padding: 4px 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gh__bloom, .gh__swirl, .gh__haze, .gh__dot {
    animation-name: none !important;
  }
}
