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

.dl {
  --paper: #fff7e6;
  --ink: #17141a;
  --line: #2f6df6;
  --rim-0: rgba(23, 20, 26, 0);
  --rim-1: rgba(23, 20, 26, 0.18);
  --gloss-0: rgba(255, 255, 255, 0.88);
  --gloss-1: rgba(255, 255, 255, 0);
  --edge: rgba(23, 20, 26, 0.38);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.dl__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;
}

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

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

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

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

.dl__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.78);
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
}

.dl__badgeNum {
  font-size: 13px;
  color: #ffd23f;
}

.dl__badgeUnit {
  font-weight: 700;
}

@media (max-width: 340px) {
  .dl {
    gap: 4px;
  }
  .dl__field {
    height: 124px;
  }
  .dl__badge {
    font-size: 10px;
    padding: 0 4px;
  }
  .dl__badgeNum {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dl.is-still .dl__field {
    cursor: default !important;
  }
  .dl.is-still .dl__badge {
    opacity: 0.92 !important;
  }
}
