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

.gg {
  display: grid;
  grid-template-columns: clamp(96px, 34%, 150px) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 432px;
}

.gg__scene {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: rgba(255, 247, 230, 0.06);
  min-height: 120px;
}

.gg__blob {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(9px);
}

.gg__blob--a {
  left: -12%;
  top: -10%;
  background-color: #ff9ebb;
}

.gg__blob--b {
  right: -14%;
  top: 18%;
  background-color: #4cd4a6;
}

.gg__blob--c {
  left: 18%;
  bottom: -18%;
  background-color: #6ec8ff;
}

.gg__glass {
  position: absolute;
  inset: 22% 12%;
  border-radius: 16px;
  border-style: solid;
  border-width: 1px;
  border-color: hsla(0, 0%, 100%, 0.5);
  background-color: hsla(0, 0%, 100%, 0.18);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.gg__panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gg__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.gg__name {
  font-weight: 700;
  font-size: clamp(8px, 2.2vw, 10px);
  color: #fff7e6;
  white-space: nowrap;
}

.gg__val {
  font-weight: 700;
  font-size: clamp(8px, 2.2vw, 10px);
  color: #5b8cf8;
  white-space: nowrap;
}

.gg__track {
  position: relative;
  display: flex;
  align-items: center;
  height: 14px;
  min-width: 0;
}

.gg__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background-color: rgba(255, 247, 230, 0.24);
  cursor: pointer;
}

.gg__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background-color: #5b8cf8;
  cursor: pointer;
}

.gg__range:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 3px;
}

.gg__ghost {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.gg__dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #5b8cf8;
  translate: -50% -50%;
}

.gg__code {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background-color: rgba(255, 247, 230, 0.08);
  font-family: ui-monospace, "Consolas", "Courier New", monospace;
  font-size: clamp(6px, 1.9vw, 9px);
}

.gg__line {
  display: block;
  line-height: 1.7;
  color: #fff7e6;
  white-space: pre;
}

.gg__mark {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 1.7em;
  border-radius: 4px;
  background-color: rgba(255, 247, 230, 0.16);
  opacity: 0;
}

.gg__foot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gg__copy {
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background-color: #fff7e6;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(8px, 2.2vw, 10px);
  cursor: pointer;
}

.gg__copy:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.gg__toast {
  font-weight: 700;
  font-size: clamp(8px, 2.2vw, 10px);
  color: #5b8cf8;
}

.gg__toast[hidden] {
  display: none;
}

.gg.is-demo .gg__range::-webkit-slider-thumb {
  visibility: hidden;
}

.gg.is-demo .gg__ghost {
  display: block;
  animation-name: ggSlide;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.gg__ghost--a {
  animation-delay: 0ms;
}

.gg__ghost--b {
  animation-delay: 160ms;
}

.gg__ghost--c {
  animation-delay: 320ms;
}

.gg__ghost--d {
  animation-delay: 480ms;
}

@keyframes ggSlide {
  0%, 8% {
    translate: 14% 0;
  }
  42%, 50% {
    translate: 72% 0;
  }
  88%, 100% {
    translate: 14% 0;
  }
}
.gg.is-demo .gg__glass {
  animation-name: ggGlass;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes ggGlass {
  0% {
    backdrop-filter: blur(3px) saturate(110%);
    background-color: hsla(0, 0%, 100%, 0.08);
  }
  34% {
    backdrop-filter: blur(12px) saturate(170%);
    background-color: hsla(0, 0%, 100%, 0.2);
  }
  67% {
    backdrop-filter: blur(22px) saturate(240%);
    background-color: hsla(0, 0%, 100%, 0.34);
  }
  100% {
    backdrop-filter: blur(3px) saturate(110%);
    background-color: hsla(0, 0%, 100%, 0.08);
  }
}
.gg.is-demo .gg__mark {
  opacity: 1;
  animation-name: ggMark;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes ggMark {
  0% {
    translate: 0 0;
  }
  34% {
    translate: 0 100%;
  }
  67% {
    translate: 0 200%;
  }
  100% {
    translate: 0 0;
  }
}
@media (max-width: 340px) {
  .gg {
    gap: 8px;
  }
  .gg__row {
    gap: 4px;
  }
  .gg__track {
    height: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gg.is-demo .gg__ghost,
  .gg.is-demo .gg__glass,
  .gg.is-demo .gg__mark {
    animation: none !important;
  }
}
