/* ============================================================
   love.css — 사랑의 삼각형 (설문·삼각형·대시보드)
   warm paper 배경 위에 얹는다. 기존 토큰(--ink/--slate/--line/--surface) 재사용.
   ============================================================ */

/* ── 삼각형 그래프 ── */
.lv-tri { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }

/* 점수 3종 미니 표 */
.lv-score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.lv-score-cell { display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 6px; border-radius: 12px; background: var(--surface, #fff);
  border: 1.5px solid var(--line); border-top: 3px solid var(--lvc); }
.lv-score-name { font-size: 12px; font-weight: 800; color: var(--lvc); }
.lv-score-val { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.lv-score-max { font-size: 11px; color: var(--slate); }

/* 유형 카드 */
.lv-type-card { margin-top: 6px; text-align: center; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(160deg, #fdeef2, #f6effa); border: 1px solid #f0d5dd; }
.lv-type-label { font-size: 12px; font-weight: 700; color: var(--slate); }
.lv-type-name { font-size: 20px; font-weight: 900; color: #b23a55; margin: 4px 0; }
.lv-type-desc { font-size: 13px; color: var(--ink); line-height: 1.6; }

/* ── 학생 설문 ── */
.lv-stage { display: flex; flex-direction: column; }
.lv-board { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 40px; }

.lv-intro { border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
  background: var(--surface); border: 1.5px solid var(--line); }
.lv-intro b { font-size: 14.5px; color: var(--ink); }
.lv-intro p { font-size: 12.5px; color: var(--slate); line-height: 1.6; margin: 6px 0 8px; }
.lv-scale-legend { display: flex; justify-content: space-between; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: #b23a55; }

/* 진행 게이지 — 스크롤 중에도 보이게 상단 고정 */
.lv-progress { position: sticky; top: 0; z-index: 5; padding: 8px 2px 10px;
  background: linear-gradient(to bottom, var(--paper, #faf7f2) 78%, transparent); }
.lv-progress-label { font-size: 12.5px; font-weight: 700; color: var(--slate); margin-bottom: 5px; }
.lv-progress-label b { color: #b23a55; font-size: 14px; }
.lv-progress-track { height: 8px; border-radius: 99px; background: var(--paper-2, #ece7df); overflow: hidden; }
.lv-progress-track i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #d84f6e, #e88aa0); transition: width .3s ease; }

/* 문항 리스트 */
.lv-q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lv-q { border-radius: 14px; padding: 13px 14px; background: var(--surface);
  border: 1.5px solid var(--line); transition: border-color .15s, background .15s; }
.lv-q.done { border-color: #e3b9c4; background: #fdf7f9; }
.lv-q-text { font-size: 13.5px; color: var(--ink); line-height: 1.55; margin-bottom: 10px; }
.lv-q-no { display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; margin-right: 8px; border-radius: 7px;
  font-size: 12px; font-weight: 800; color: #b23a55; background: #fdeef2; }
.lv-q-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lv-q-btn { min-height: 40px; border-radius: 10px; font-size: 15px; font-weight: 800;
  border: 1.5px solid var(--line); background: #fff; color: var(--slate); cursor: pointer;
  transition: border-color .12s, background .12s, color .12s; }
.lv-q-btn.sel { border-color: #d84f6e; background: #d84f6e; color: #fff; }

/* ── 학생 결과 ── */
.lv-result { text-align: center; }
.lv-result-kicker { font-size: 12.5px; font-weight: 800; color: #b23a55; }
.lv-result-title { font-size: 21px; font-weight: 900; color: var(--ink); margin: 4px 0 8px; }
.lv-copy-hint { margin-top: 12px; text-align: left; font-size: 13px; color: var(--ink); line-height: 1.7;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.lv-safe-note { margin-top: 10px; font-size: 12px; color: var(--slate); line-height: 1.6; }
.lv-closed-note { text-align: center; font-size: 13.5px; color: var(--slate); padding: 40px 16px; }

/* ── 교사 대시보드 ── */
.lv-t-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; margin: 20px 0; }
.lv-t-section-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.lv-t-avg { background: var(--surface); border-radius: var(--r-lg, 16px); border: 1px solid var(--line);
  padding: 16px; box-shadow: var(--sh-1); text-align: center; }
.lv-t-avg-nums { font-size: 13px; color: var(--slate); margin-top: 6px; }
.lv-t-avg-nums b { font-size: 16px; }
.lv-t-list { background: var(--surface); border-radius: var(--r-lg, 16px); border: 1px solid var(--line);
  padding: 16px; box-shadow: var(--sh-1); min-width: 0; }
.lv-t-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lv-t-list-head .lv-t-section-title { margin-bottom: 0; }
.lv-t-covered { margin-top: 12px; font-size: 13px; color: var(--slate); line-height: 1.7;
  text-align: center; padding: 26px 16px; border-radius: 12px;
  border: 1.5px dashed var(--line); background: var(--paper, #faf7f2); }
.lv-t-covered b { color: var(--ink); }
.lv-t-covered-emoji { display: block; font-size: 26px; margin-bottom: 6px; }
.lv-t-rows { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; margin-top: 10px; }
.lv-t-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 9px 14px; cursor: pointer; }
.lv-t-row:hover { border-color: #d84f6e; }
.lv-t-row.pending { opacity: .55; cursor: default; }
.lv-t-name { flex: 0 0 auto; min-width: 64px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.lv-t-nums { flex: 0 0 auto; display: flex; gap: 10px; font-size: 14px; font-weight: 800; }
.lv-t-nums i { font-style: normal; min-width: 24px; text-align: right; }
.lv-t-type { flex: 1 1 auto; font-size: 12.5px; font-weight: 700; color: #b23a55;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.lv-t-wait { flex: 1 1 auto; font-size: 12.5px; color: var(--slate); text-align: right; }
.lv-t-legend { font-size: 11.5px; color: var(--slate); margin: 10px 0 0; }
.lv-t-legend i { font-style: normal; font-weight: 800; }
.lv-sheet .lv-tri { max-width: 300px; }

@media (max-width: 860px) {
  .lv-t-grid { grid-template-columns: 1fr; }
}

/* ── ○○ 대상 선택 ── */
.lv-target-pick { text-align: center; padding: 22px 6px; }
.lv-target-emoji { font-size: 52px; margin-bottom: 8px; }
.lv-target-title { font-size: 21px; font-weight: 900; color: var(--ink); margin: 0 0 8px; }
.lv-target-lead { font-size: 13px; color: var(--slate); line-height: 1.7; margin: 0 0 16px; }
.lv-target-lead b { color: #b23a55; }
.lv-target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lv-target-btn { display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 10px; border-radius: 14px; background: var(--surface);
  border: 2px solid var(--line); cursor: pointer; transition: border-color .12s, transform .1s; }
.lv-target-btn:active { transform: scale(.97); }
.lv-target-btn:hover { border-color: #d84f6e; }
.lv-target-btn-emoji { font-size: 30px; }
.lv-target-btn-label { font-size: 13.5px; font-weight: 800; color: var(--ink); }

/* 설문 상단 대상 칩 */
.lv-target-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: var(--slate); background: #fdf7f9; border: 1px solid #f0d5dd;
  border-radius: 999px; padding: 6px 12px; margin: 0 0 8px; }
.lv-target-chip b { color: #b23a55; }
/* 결과의 대상 표시 */
.lv-result-target { font-size: 12.5px; color: var(--slate); margin: -2px 0 8px; }
.lv-result-target span { font-size: 11px; opacity: .75; }

/* 대시보드 — 우리 반의 ○○ 집계 */
.lv-t-targets { margin-top: 12px; text-align: left; }
.lv-t-targets-label { font-size: 12.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.lv-t-targets-label span { font-weight: 600; color: var(--slate); font-size: 11px; }
.lv-t-target-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-t-target-chip { font-size: 12px; font-weight: 700; color: var(--ink);
  background: #fdf7f9; border: 1px solid #f0d5dd; border-radius: 999px; padding: 4px 10px; }
.lv-t-target-chip b { color: #b23a55; margin-left: 2px; }

/* ── 프로젝션(다크 무대) — sc-present 위에 얹는 lv 전용 ── */
.lv-present .lv-tri { max-width: 320px; }
/* 다크 배경에서 눈금·축이 보이도록 색 재정의 */
.lv-present .lv-tri polygon[stroke] { stroke-opacity: .95; }
.lv-present .lv-tri [stroke="var(--line, #ddd)"] { stroke: rgba(242, 240, 234, .22); }
.lv-present .lv-tri [stroke="var(--slate, #888)"] { stroke: rgba(242, 240, 234, .6); }
.lv-present .lv-tri circle[r="1.6"] { fill: rgba(242, 240, 234, .6); }
.lv-p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lv-p-card { border: 1.5px solid rgba(242, 240, 234, .18); border-radius: 18px; padding: 22px 24px; }
.lv-p-card-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.lv-p-card-title span { font-size: 13px; font-weight: 700; opacity: .6; }
.lv-p-tri { max-width: 320px; margin: 0 auto; }
.lv-p-avg-nums { display: flex; justify-content: center; gap: 22px; font-size: 17px; font-weight: 800; margin-top: 8px; }
.lv-p-question { text-align: center; font-size: 15px; line-height: 1.6; opacity: .85; margin: 16px 0 0; }
.lv-p-type-list { display: flex; flex-direction: column; gap: 10px; }
.lv-p-type-row { display: flex; align-items: center; gap: 12px; }
.lv-p-type-name { flex: 0 0 110px; font-size: 15px; font-weight: 800; }
.lv-p-type-bar { flex: 1 1 auto; height: 18px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.lv-p-type-bar i { display: block; height: 100%; border-radius: 9px;
  background: linear-gradient(90deg, #d84f6e, #e88aa0); transition: width .5s ease; }
.lv-p-type-count { flex: 0 0 auto; font-size: 17px; font-weight: 800; color: #ffd36e; min-width: 26px; text-align: right; }
.lv-p-target-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-p-target-chip { font-size: 14.5px; font-weight: 700; border-radius: 999px; padding: 7px 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(242, 240, 234, .2); }
.lv-p-target-chip b { color: #ffd36e; margin-left: 3px; }
@media (max-width: 860px) {
  .lv-p-grid { grid-template-columns: 1fr; }
}
