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

.cd {
  --sand-night: #201c17;
  --sand-mist: #d8d2c6;
  --sand-glow: #f2e2c4;
  --sand-grain: #d9b98a;
  --sand-gold: #ecd9b0;
  --sand-water: #a9c8dd;
  --sand-ice: #cfe3ee;
  --sand-fire: #ffc9ad;
  --sand-flame: #ffe0c4;
  --sand-ash: #b9b2a6;
  --sand-smoke: #8e8879;
  --sand-plant: #9fd6ad;
  --sand-leaf: #c4e6c9;
  --sand-acid: #c7dd8f;
  --sand-stone: #8a8578;
  --sand-wood: #b98a63;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

.cd__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: #d8d2c6;
}

.cd__field {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: #201c17;
  box-shadow: inset 0 0 0 1px rgba(216, 210, 198, 0.18);
}

.cd__field:focus-visible {
  outline: 2px solid #b9a0ff;
  outline-offset: 2px;
}

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

.cd__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.cd__meta {
  font-size: 10px;
  font-weight: 500;
  color: rgba(216, 210, 198, 0.72);
}

.cd__val {
  color: #b9a0ff;
  font-weight: 700;
}

.cd__meta--dim {
  font-size: 10px;
}

@media (max-width: 340px) {
  .cd {
    gap: 4px;
  }
  .cd__field {
    height: 110px;
  }
  .cd__meta--dim {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cd.is-still .cd__field {
    cursor: default !important;
  }
}
