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

.ld {
  --ghost: #c9c5cf;
  --real: #0a4fe8;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 424px;
}

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

.ld__ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #0a4fe8;
}

.ld__field {
  position: relative;
  height: 208px;
  display: flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: #fff7e6;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 26, 0.12);
  cursor: pointer;
  padding: 0 20px;
}

.ld__field:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

.ld__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(10, 79, 232, 0.14);
  border-right: 1px solid rgba(10, 79, 232, 0.28);
}

.ld__sentence {
  position: relative;
  z-index: 1;
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  font-weight: 700;
  font-size: clamp(20px, 5.6vw, 28px);
  line-height: 1.55;
}

.ld__ch {
  color: var(--ghost);
}

.ld__caret {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 3px;
  height: 1.2em;
  border-radius: 4px;
  background: var(--real);
  transform-origin: top left;
}

@media (max-width: 340px) {
  .ld {
    gap: 4px;
  }
  .ld__field {
    height: 124px;
    padding: 0 12px;
  }
  .ld__sentence {
    font-size: 15px;
    line-height: 1.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ld.is-still .ld__field {
    cursor: default !important;
  }
  .ld.is-still .ld__caret {
    opacity: 1 !important;
  }
}
