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

.dg {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: 100%;
}

.dg__caption {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
}

.dg__scene {
  position: relative;
  width: 260px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dg__chip {
  position: relative;
  z-index: 2;
  border: 0;
  background: #fff7e6;
  border-radius: 999px;
  padding: 12px;
  cursor: grab;
  color: #0a4fe8;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  touch-action: none;
  will-change: transform;
}

.dg__chip:active {
  cursor: grabbing;
}

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

.dg__shape {
  fill: none;
  stroke: #0a4fe8;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.dg__chip[aria-pressed=true] .dg__shape {
  fill: #0a4fe8;
}

.dg__drop {
  position: absolute;
  top: 108px;
  width: 220px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 2px dashed #5b8cf8;
  background: transparent;
  transition: background 300ms ease-out, border-color 300ms ease-out, transform 300ms ease-out;
}

.dg__drop--near {
  border-color: #2f6df6;
  background: rgb(68.7254901961%, 88.137254902%, 100%);
  transform: scale(1.03);
}

.dg__drop--filled {
  border-style: solid;
  border-color: #0a4fe8;
  background: #6ec8ff;
}

.dg__dropLabel {
  font-size: 12px;
  font-weight: 700;
  color: #0a4fe8;
}

.dg__status {
  margin: 0;
  font-size: 11px;
  color: #17141a;
  font-weight: 600;
}

@media (max-width: 340px) {
  .dg__scene {
    width: 200px;
    height: 100px;
  }
  .dg__drop {
    width: 150px;
    top: 50px;
    height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dg__chip {
    transition: none;
  }
  .dg__drop {
    transition: none;
  }
}
