html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.dg-wrap {
  width: min(240px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dg-viewport {
  width: 100%;
  height: 96px;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 16px;
  cursor: grab;
  touch-action: pan-x;
  scrollbar-width: none;
}
.dg-viewport::-webkit-scrollbar {
  display: none;
}
.dg-viewport.is-grabbing {
  cursor: grabbing;
}

.dg-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 4px;
}

.dg-tile {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(23, 20, 26, 0.18);
}

.dg-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-size: 11px;
  font-weight: 700;
}

.dg-hint svg {
  width: 14px;
  height: 14px;
}

.dg-viewport.is-demo {
  overflow: hidden;
}

.dg-viewport.is-demo .dg-track {
  animation: dg-drag 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes dg-drag {
  0%, 8% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-172px);
  }
  92%, 100% {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dg-track {
    animation: none !important;
  }
}
