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

.stage {
  position: relative;
  overflow: hidden;
}

.panel {
  position: absolute;
  inset: clamp(14px, 4vw, 24px);
  display: grid;
  place-items: center;
  gap: clamp(8px, 2.4vw, 12px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
}

.label {
  font-weight: 700;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
}

.cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #2f6df6;
  pointer-events: none;
}

.tap {
  border: 0;
  border-radius: 999px;
  padding: clamp(10px, 3vw, 14px) clamp(22px, 6vw, 30px);
  font-weight: 700;
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  background: #fff7e6;
}

.panel--mouse.is-demo {
  animation: panel-cross 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.panel--touch.is-demo {
  animation: panel-cross 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: calc(2s / -2);
}

@keyframes panel-cross {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.panel--mouse .cursor {
  transform: translate(50%, 50%);
}

@media (pointer: coarse) {
  .panel--mouse {
    display: none;
  }
  .panel--touch {
    opacity: 1;
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel.is-demo {
    animation: none;
  }
  .panel--mouse.is-demo {
    opacity: 1;
  }
  .panel--touch.is-demo {
    opacity: 0;
  }
}
