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

.hg {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: clamp(272px, 94vw, 424px);
  padding: clamp(16px, 4vw, 24px);
  border-radius: 16px;
  background: #17141a;
}

.hg__bg {
  position: absolute;
  inset: 0;
}

.hg__blob {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
}

.hg__blob--a {
  left: -64px;
  top: -104px;
  background: radial-gradient(circle at 50% 50%, #9791c9, rgba(151, 145, 201, 0) 70%);
}

.hg__blob--b {
  right: -108px;
  bottom: -136px;
  background: radial-gradient(circle at 50% 50%, #ff4d1f, rgba(255, 77, 31, 0) 70%);
}

.hg__blob--c {
  left: 44%;
  bottom: -160px;
  background: radial-gradient(circle at 50% 50%, #479074, rgba(71, 144, 116, 0) 70%);
}

.hg__card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(12px, 3.2vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.hg__sheen {
  position: absolute;
  inset: 0;
  clip-path: inset(0 round 16px);
  pointer-events: none;
}

.hg__beam {
  --sweep: 440px;
  position: absolute;
  left: 0;
  top: -60%;
  bottom: -60%;
  width: 72px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0));
  transform: rotate(18deg) translateX(-120px);
}

.hg__title {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(15px, 3.8vw, 22px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.hg__sub {
  margin: 4px 0 0;
  color: #b6b0c0;
  font-weight: 500;
  font-size: clamp(10px, 2.5vw, 13px);
  line-height: 1.45;
}

.hg__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: clamp(8px, 2.4vw, 12px);
  padding: clamp(4px, 1.6vw, 8px) clamp(8px, 3vw, 16px);
  border-radius: 999px;
  background: #ffffff;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(10px, 2.4vw, 13px);
  line-height: 1;
  text-decoration: none;
}

.hg__cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.hg__switch {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.2;
  cursor: pointer;
}

.hg__switch[aria-pressed=true] {
  background: rgba(255, 255, 255, 0.26);
}

.hg__switch:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.hg.is-demo .hg__blob {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.hg.is-demo .hg__blob--a {
  animation-name: hgDriftA;
}

.hg.is-demo .hg__blob--b {
  animation-name: hgDriftB;
  animation-delay: -0.6667s;
}

.hg.is-demo .hg__blob--c {
  animation-name: hgDriftC;
  animation-delay: -1.3333s;
}

.hg.is-demo .hg__beam {
  animation-name: hgSheen;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.hg.is-paused .hg__blob,
.hg.is-paused .hg__beam {
  animation-play-state: paused;
}

@keyframes hgDriftA {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(34px, 22px);
  }
}
@keyframes hgDriftB {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, -20px);
  }
}
@keyframes hgDriftC {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, -28px);
  }
}
@keyframes hgSheen {
  0%, 6% {
    transform: rotate(18deg) translateX(-120px);
  }
  56%, 100% {
    transform: rotate(18deg) translateX(var(--sweep));
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .hg {
    width: 100%;
    padding: 12px;
  }
  .hg__card {
    padding: 8px;
  }
  .hg__blob {
    width: 180px;
    height: 180px;
  }
  .hg__beam {
    --sweep: 300px;
    width: 56px;
  }
  .hg__switch {
    padding: 0 4px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hg__blob, .hg__beam {
    animation: none !important;
  }
}
