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

.hl {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hl__hint {
  margin: 0;
  padding: 0 4px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 247, 230, 0.72);
}

.hl__field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7e6;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

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

.hl__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: #17141a;
  caret-color: #0a4fe8;
}

.hl__list {
  margin: 0;
  padding: 4px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 132px;
  overflow-y: auto;
  background: #fff7e6;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.hl__item {
  padding: 4px 8px;
  border-radius: 8px;
  background: transparent;
  color: rgba(23, 20, 26, 0.72);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  transform: scale(1);
  transform-origin: center;
  transition: transform 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out;
}

.hl__item.is-hit {
  background: #0a4fe8;
  color: #fff7e6;
  transform: scale(1.02);
}

.hl__mark {
  background: #93a4ca;
  color: #17141a;
  border-radius: 4px;
  padding: 0 4px;
}

.hl__meta {
  margin: 0;
  padding: 0 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hl__tag {
  font-weight: 700;
  font-size: 14px;
  color: #fff7e6;
}

.hl__unit {
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 247, 230, 0.72);
}

@media (max-width: 340px) {
  .hl {
    max-width: 280px;
  }
  .hl__item {
    font-size: 11px;
  }
  .hl__list {
    max-height: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hl__item {
    transition: none;
  }
}
