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

.gs {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gs__card {
  width: min(100%, 340px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  overflow: hidden;
}

.gs__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #17141a;
  padding: 8px 12px;
}

.gs__snap, .gs__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #ffffff;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10px);
  padding: 4px 8px;
  line-height: 1.3;
}

.gs__snap:focus-visible, .gs__btn:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 2px;
}

.gs__ico {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.gs__pill {
  position: relative;
  width: 18px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.gs__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.gs__snap[aria-pressed=true] .gs__pill {
  background: #2f6df6;
}

.gs__snap[aria-pressed=true] .gs__knob {
  transform: translateX(8px);
}

.gs__board {
  position: relative;
  background: #fff7e6;
  aspect-ratio: 300/104;
  touch-action: none;
  background-image: repeating-linear-gradient(to right, rgba(23, 20, 26, 0.16) 0 1px, transparent 1px 8.3333333333%), repeating-linear-gradient(to bottom, rgba(23, 20, 26, 0.16) 0 1px, transparent 1px 25%);
}

.gs__ink, .gs__ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gs__ghost {
  display: none;
  fill: none;
}

.gs__line {
  stroke: #17141a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.gs__diag {
  stroke: #2f6df6;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.gs__ring {
  stroke: #2f6df6;
  stroke-width: 2;
  fill: #ffffff;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.gs__live {
  position: relative;
  margin: 0;
  padding: 4px 12px 8px;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  color: rgba(23, 20, 26, 0.72);
}

.gs__liveDemo {
  display: none;
  position: absolute;
  left: 12px;
  top: 4px;
}

.gs.is-demo .gs__ink {
  visibility: hidden;
}

.gs.is-demo .gs__ghost {
  display: block;
}

.gs.is-demo .gs__line {
  animation-name: gsDraw;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes gsDraw {
  0%, 14% {
    stroke-dashoffset: 100;
  }
  54%, 68% {
    stroke-dashoffset: 0;
  }
  88%, 100% {
    stroke-dashoffset: 100;
  }
}
.gs.is-demo .gs__diag {
  animation-name: gsDiag;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes gsDiag {
  0%, 56% {
    stroke-dashoffset: 100;
  }
  60%, 64% {
    stroke-dashoffset: 0;
  }
  82%, 100% {
    stroke-dashoffset: 100;
  }
}
.gs.is-demo .gs__ring {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.gs.is-demo .gs__ring--1 {
  animation-name: gsRing1;
}

.gs.is-demo .gs__ring--2 {
  animation-name: gsRing2;
}

.gs.is-demo .gs__ring--3 {
  animation-name: gsRing3;
}

.gs.is-demo .gs__ring--4 {
  animation-name: gsRing4;
}

.gs.is-demo .gs__ring--5 {
  animation-name: gsRing5;
}

.gs.is-demo .gs__ring--6 {
  animation-name: gsRing6;
}

.gs.is-demo .gs__ring--7 {
  animation-name: gsRing7;
}

@keyframes gsRing1 {
  0%, 14% {
    transform: scale(0);
  }
  19% {
    transform: scale(1.6);
  }
  22%, 86% {
    transform: scale(1);
  }
  89%, 100% {
    transform: scale(0);
  }
}
@keyframes gsRing2 {
  0%, 21% {
    transform: scale(0);
  }
  26% {
    transform: scale(1.6);
  }
  29%, 84% {
    transform: scale(1);
  }
  87%, 100% {
    transform: scale(0);
  }
}
@keyframes gsRing3 {
  0%, 31% {
    transform: scale(0);
  }
  36% {
    transform: scale(1.6);
  }
  39%, 80% {
    transform: scale(1);
  }
  83%, 100% {
    transform: scale(0);
  }
}
@keyframes gsRing4 {
  0%, 34% {
    transform: scale(0);
  }
  39% {
    transform: scale(1.6);
  }
  42%, 78% {
    transform: scale(1);
  }
  81%, 100% {
    transform: scale(0);
  }
}
@keyframes gsRing5 {
  0%, 44% {
    transform: scale(0);
  }
  49% {
    transform: scale(1.6);
  }
  52%, 73% {
    transform: scale(1);
  }
  76%, 100% {
    transform: scale(0);
  }
}
@keyframes gsRing6 {
  0%, 47% {
    transform: scale(0);
  }
  52% {
    transform: scale(1.6);
  }
  55%, 71% {
    transform: scale(1);
  }
  74%, 100% {
    transform: scale(0);
  }
}
@keyframes gsRing7 {
  0%, 54% {
    transform: scale(0);
  }
  59% {
    transform: scale(1.6);
  }
  62%, 68% {
    transform: scale(1);
  }
  71%, 100% {
    transform: scale(0);
  }
}
.gs.is-demo .gs__pill {
  animation-name: gsPillOn;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes gsPillOn {
  0%, 9% {
    background-color: rgba(255, 255, 255, 0.3);
  }
  10%, 91% {
    background-color: #2f6df6;
  }
  92%, 100% {
    background-color: rgba(255, 255, 255, 0.3);
  }
}
.gs.is-demo .gs__knob {
  animation-name: gsKnob;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes gsKnob {
  0%, 9% {
    transform: translateX(0);
  }
  14%, 89% {
    transform: translateX(8px);
  }
  94%, 100% {
    transform: translateX(0);
  }
}
.gs.is-demo .gs__snap .gs__ico {
  animation-name: gsPop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes gsPop {
  0%, 9% {
    transform: scale(1);
  }
  13% {
    transform: scale(1.3);
  }
  18%, 100% {
    transform: scale(1);
  }
}
.gs.is-demo .gs__liveReal {
  color: transparent;
}

.gs.is-demo .gs__liveDemo {
  display: block;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.gs.is-demo .gs__liveDemo--off {
  animation-name: gsLabelOff;
}

.gs.is-demo .gs__liveDemo--on {
  animation-name: gsLabelOn;
}

@keyframes gsLabelOff {
  0%, 9% {
    opacity: 1;
  }
  10%, 91% {
    opacity: 0;
  }
  92%, 100% {
    opacity: 1;
  }
}
@keyframes gsLabelOn {
  0%, 9% {
    opacity: 0;
  }
  10%, 91% {
    opacity: 1;
  }
  92%, 100% {
    opacity: 0;
  }
}
.gs.is-demo .gs__btn {
  animation-name: gsPress;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes gsPress {
  0%, 64% {
    transform: scale(1);
  }
  68% {
    transform: scale(0.9);
  }
  74%, 100% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .gs__bar {
    padding: 4px 8px;
  }
  .gs__live {
    padding: 4px 8px;
  }
  .gs__liveDemo {
    left: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gs.is-demo .gs__line,
  .gs.is-demo .gs__diag,
  .gs.is-demo .gs__ring,
  .gs.is-demo .gs__pill,
  .gs.is-demo .gs__knob,
  .gs.is-demo .gs__snap .gs__ico,
  .gs.is-demo .gs__btn,
  .gs.is-demo .gs__liveDemo {
    animation: none !important;
  }
  .gs.is-demo .gs__line,
  .gs.is-demo .gs__diag {
    stroke-dashoffset: 0 !important;
  }
  .gs.is-demo .gs__ring {
    transform: scale(1) !important;
  }
  .gs.is-demo .gs__pill {
    background-color: #2f6df6 !important;
  }
  .gs.is-demo .gs__knob {
    transform: translateX(8px) !important;
  }
  .gs.is-demo .gs__liveDemo--off {
    opacity: 0 !important;
  }
  .gs.is-demo .gs__liveDemo--on {
    opacity: 1 !important;
  }
}
