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

.dm {
  --dye-r: #dba7ab;
  --dye-g: #a8c9ab;
  --dye-b: #a7b9d9;
  --dye-paper: #fff3cf;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.dm__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #17141a;
}

.dm__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #17141a;
}

.dm__field {
  position: relative;
  height: 208px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff3cf;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.22);
  cursor: crosshair;
  touch-action: none;
}

.dm__field:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.dm__cv {
  display: block;
  width: 100%;
  height: 100%;
}

.dm__badge {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.82);
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
}

.dm__badgeUnit {
  font-weight: 700;
}

@media (max-width: 340px) {
  .dm {
    gap: 4px;
  }
  .dm__field {
    height: 124px;
  }
  .dm__badge {
    font-size: 10px;
    padding: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dm.is-still .dm__field {
    cursor: default !important;
  }
}
