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

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

.pvs {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  aspect-ratio: 480/300;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: #fff7e6;
}

.pvs__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #17141a;
}

.pvs__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #17141a;
}

.pvs__count {
  flex: 0 0 auto;
  color: #fff;
  font-size: 10px;
  opacity: 0.8;
}

.pvs__body {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.pvs__doc {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 12px;
  box-sizing: border-box;
  scrollbar-width: none;
}
.pvs__doc::-webkit-scrollbar {
  display: none;
}

.doc__page {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(23, 20, 26, 0.1);
}

.doc__title {
  height: 7px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.32);
  margin-bottom: 4px;
}

.pvs__lineText {
  margin: 4px 0 0;
  font-size: 9px;
  line-height: 1.6;
  color: rgba(23, 20, 26, 0.55);
}

.pvs__w {
  border-radius: 4px;
  padding: 0 4px;
  transition: background-color 300ms ease, color 300ms ease;
}
.pvs__w--hit {
  background: #5b8cf8;
  color: #17141a;
  font-weight: 700;
}

.pvs__results {
  flex: 0 0 auto;
  width: 27%;
  border-left: 1px solid rgba(23, 20, 26, 0.12);
  overflow-y: auto;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none;
}
.pvs__results::-webkit-scrollbar {
  display: none;
}

.pvs__result {
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 9px;
  text-align: left;
  background: rgba(47, 109, 246, 0.12);
  color: #17141a;
  cursor: pointer;
}

@media (max-width: 340px) {
  .pvs__lineText {
    font-size: 8px;
  }
  .pvs__result {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pvs__w {
    transition: none;
  }
}
