html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #d2c7a4;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

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

.ty__hint {
  margin: 0;
  padding: 0 4px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
}

.ty__field {
  background: #fff7e6;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.ty__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 500;
  font-size: 13px;
  color: #17141a;
  caret-color: #0a4fe8;
}

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

.ty__item {
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  color: #17141a;
}

.ty__item.is-exact {
  background: #0a4fe8;
  color: #fff7e6;
}

.ty__item--empty {
  color: rgba(23, 20, 26, 0.72);
  font-weight: 400;
}

.ty__item--typo {
  --emph: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: calc(2px + 2px * var(--emph)) solid #0a4fe8;
  padding-left: 8px;
  border-radius: 8px;
  transition: background-color 220ms ease-out, border-left-width 220ms ease-out;
}

.ty__typoLabel {
  font-weight: 400;
  font-size: 10px;
  color: rgba(23, 20, 26, 0.72);
}

.ty__typoWord {
  font-weight: 700;
  font-size: 13px;
  color: #0a4fe8;
}

@media (max-width: 340px) {
  .ty {
    max-width: 260px;
  }
  .ty__list {
    max-height: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ty__item--typo {
    transition: none;
  }
}
