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

.gde {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  height: calc(100vh - clamp(16px, 8vw, 48px));
}

.gde__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.gde__title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  margin-right: auto;
  font-weight: 800;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1.2;
  color: #17141a;
}

.gde__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #2f6df6;
}

.gde__ico--sm {
  width: 12px;
  height: 12px;
}

.gde__pill {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(23, 20, 26, 0.08);
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.2;
  color: #17141a;
  white-space: nowrap;
}

.gde__label {
  font-weight: 600;
  color: rgba(23, 20, 26, 0.72);
}

.gde__num {
  font-weight: 800;
}

.gde__btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: rgba(23, 20, 26, 0.08);
  cursor: pointer;
  color: #17141a;
}

.gde__btn:hover {
  background: rgba(23, 20, 26, 0.16);
}

.gde__btn:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 0;
}

.gde__arena {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.05);
  overflow: hidden;
  cursor: none;
}

.gde__eyeWrap, .gde__targetWrap {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.gde__eye {
  display: block;
  width: clamp(64px, 20vw, 96px);
  height: auto;
}

.gde__ball {
  fill: #fff7e6;
  stroke: #17141a;
  stroke-width: 3;
}

.gde__iris {
  fill: #2f6df6;
}

.gde__pupil {
  fill: #17141a;
}

.gde__glint {
  fill: #ffffff;
}

.gde.is-near .gde__ball {
  stroke: #c2361a;
}

.gde__ring {
  position: absolute;
  inset: -8px;
  border: 2px solid #c2361a;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
}

.gde.is-near .gde__ring {
  opacity: 0.9;
}

.gde__cursor {
  display: block;
  width: 24px;
  height: 24px;
  color: #17141a;
  filter: drop-shadow(0 1px 2px rgba(23, 20, 26, 0.25));
}

.gde__halo {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(23, 20, 26, 0.35);
  border-radius: 50%;
  opacity: 0;
}

.gde__dotsWrap {
  position: absolute;
  left: 8px;
  top: 8px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gde__dotsLabel {
  font-weight: 700;
  font-size: 9px;
  line-height: 1;
  color: rgba(23, 20, 26, 0.72);
}

.gde__dots {
  display: flex;
  gap: 4px;
}

.gde__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.16);
  transition: background-color 220ms ease-out, transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.gde__dot.is-hit {
  background: #c2361a;
  transform: scale(1.15);
}

.gde__warn {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -4px);
  margin: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: #c2361a;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.2;
  opacity: 0;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  pointer-events: none;
}

.gde.is-near .gde__warn {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gde [hidden] {
  display: none !important;
}

.gde__over {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 20, 26, 0.55);
}

.gde__overPanel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.gde__overTitle {
  margin: 0;
  font-weight: 800;
  font-size: clamp(13px, 3.4vw, 16px);
  line-height: 1.2;
  color: #17141a;
}

.gde__overLine {
  margin: 0;
  font-weight: 600;
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
}

.gde__again {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 12px;
  padding: 4px 12px;
  background: #0a4fe8;
  color: #fff7e6;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1.4;
  cursor: pointer;
}

.gde__again:hover {
  background: #2f6df6;
}

.gde__again:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

.gde__hint {
  margin: 0;
  font-weight: 500;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
}

.gde.is-demo .gde__targetWrap {
  animation-name: gdeTarget;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes gdeTarget {
  0% {
    transform: translate3d(338px, 138px, 0);
  }
  22% {
    transform: translate3d(188px, 32px, 0);
  }
  45% {
    transform: translate3d(48px, 128px, 0);
  }
  68% {
    transform: translate3d(238px, 78px, 0);
  }
  88% {
    transform: translate3d(373px, 48px, 0);
  }
  100% {
    transform: translate3d(338px, 138px, 0);
  }
}
.gde.is-demo .gde__eyeWrap {
  animation-name: gdeEye;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes gdeEye {
  0% {
    transform: translate3d(252px, 122px, 0);
  }
  25% {
    transform: translate3d(207px, 72px, 0);
  }
  50% {
    transform: translate3d(72px, 32px, 0);
  }
  72% {
    transform: translate3d(47px, 102px, 0);
  }
  100% {
    transform: translate3d(252px, 122px, 0);
  }
}
.gde.is-demo .gde__halo {
  animation-name: gdeHalo;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes gdeHalo {
  0%, 100% {
    opacity: 0;
    transform: scale(0.7);
  }
  45% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
.gde.is-demo .gde__warn {
  animation-name: gdeWarnBlink;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes gdeWarnBlink {
  0%, 100% {
    opacity: 0;
  }
  48% {
    opacity: 1;
  }
}
.gde.is-demo .gde__ring {
  animation-name: gdeRingPulse;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes gdeRingPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}
@media (max-width: 340px) {
  .gde.is-demo .gde__targetWrap {
    animation-name: gdeTargetN;
  }
  .gde.is-demo .gde__eyeWrap {
    animation-name: gdeEyeN;
  }
}
@keyframes gdeTargetN {
  0% {
    transform: translate3d(226px, 81px, 0);
  }
  22% {
    transform: translate3d(124px, 15px, 0);
  }
  45% {
    transform: translate3d(29px, 75px, 0);
  }
  68% {
    transform: translate3d(158px, 44px, 0);
  }
  88% {
    transform: translate3d(248px, 25px, 0);
  }
  100% {
    transform: translate3d(226px, 81px, 0);
  }
}
@keyframes gdeEyeN {
  0% {
    transform: translate3d(172px, 73px, 0);
  }
  25% {
    transform: translate3d(141px, 42px, 0);
  }
  50% {
    transform: translate3d(49px, 17px, 0);
  }
  72% {
    transform: translate3d(32px, 61px, 0);
  }
  100% {
    transform: translate3d(172px, 73px, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gde.is-demo .gde__targetWrap,
  .gde.is-demo .gde__eyeWrap,
  .gde.is-demo .gde__halo,
  .gde.is-demo .gde__warn,
  .gde.is-demo .gde__ring {
    animation: none !important;
  }
  .gde__dot, .gde__warn {
    transition: none !important;
  }
}
