/* =========================================================
   늙크크 테스트 전용 스타일 (/content/neulkekeu/ 에서만 불러옴)
   기존 css/style.css의 색상·글꼴 변수와 버튼·진행률 스타일을 그대로 쓰고,
   이 페이지에만 필요한 것만 추가합니다. 포인트 색은 코랄.
   (다른 테스트에는 영향 없음)
   ========================================================= */
.nk {
  --coral-ink: #9a4527;   /* 글씨·숫자용 */
  --coral: #d2805e;       /* 진행 막대 등 장식 */
  --coral-soft: #fbefe8;
  --coral-line: #f0d9cc;
}

.nk-eyebrow { color: var(--coral-ink); }

/* ---------- 시작 화면 ---------- */
.nk-start { padding-top: 8px; }
.nk-back { margin-bottom: 4px; }

.nk-cover-title {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nk-cover-lead {
  margin-top: 10px;
  font-size: 17px;
  color: #3f3f3f;
}

.nk-cover-card {
  margin-top: 26px;
  padding: 20px 20px 18px;
  background: var(--coral-soft);
  border-radius: var(--radius);
}

.nk-cover-meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--coral-ink);
  letter-spacing: 0.02em;
}

.nk-cover-hook {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.nk-cover-desc {
  margin-top: 8px;
  font-size: 15.5px;
  color: #3f3f3f;
}

.nk-btn-start {
  width: 100%;
  max-width: 360px;
  margin-top: 24px;
  font-size: 17px;
}

.nk-cover-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 질문 화면 ---------- */
.nk-quiz .progress-bar { background: var(--coral-ink); }

.nk-cat-chip {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-ink);
  font-size: 13px;
  font-weight: 700;
}

.nk-term-card {
  padding: 28px 20px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.nk-term {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  outline: none;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.nk-term.is-long { font-size: 27px; }

.nk-artist {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.nk-example {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

.nk-artist[hidden], .nk-example[hidden] { display: none; }

.nk-ask {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

/* 자동 이동 안내: 질문 바로 아래 작은 글씨 (선택지 묶음의 설명으로 연결) */
.nk-auto-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.nk-auto-icon { flex: none; color: var(--coral-ink); font-weight: 700; }

.nk-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.nk-option {
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nk-option:active { background: var(--coral-soft); }
.nk-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.nk-option-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid #cfc9bf;
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}

.nk-option-label { min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }

.nk-option.is-selected {
  border-color: var(--coral-ink);
  background: var(--coral-soft);
}

/* 선택 표시: 숫자 원이 채워짐 (색만으로 구별하지 않도록 aria-pressed와 굵은 테두리 함께) */
.nk-option.is-selected .nk-option-num {
  border-color: var(--coral-ink);
  background: var(--coral-ink);
  color: #fff;
}

.nk-option.is-selected { box-shadow: inset 0 0 0 1px var(--coral-ink); }

.nk-key-hint {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.nk-quiz-status { margin-top: 0; }

/* ---------- 결과 화면 ---------- */
.nk-result-head { margin-bottom: 18px; }

.nk-result-title {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  outline: none;
}

.nk-score-card {
  padding: 24px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nk-score-label { font-size: 14px; font-weight: 600; color: var(--muted); }

.nk-score { margin-top: 2px; color: var(--coral-ink); line-height: 1.1; }

.nk-score-num {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nk-score-unit { margin-left: 4px; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.nk-score-max { margin-left: 6px; font-size: 15px; color: var(--muted); }

.nk-meter {
  height: 8px;
  margin-top: 12px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.nk-meter-bar { height: 100%; width: 0; background: var(--coral-ink); border-radius: 999px; }

.nk-grade {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nk-summary { margin-top: 6px; font-size: 16.5px; font-weight: 600; color: #3a3a3a; }

.nk-sec { margin-top: 28px; }

.nk-sec-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 18.5px;
  line-height: 1.4;
  color: var(--coral-ink);
}

.nk-detail { margin-top: 12px; }
.nk-detail-line { font-size: 15.5px; line-height: 1.75; color: #3a3a3a; }
.nk-detail-line + .nk-detail-line { margin-top: 6px; }

.nk-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.nk-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
}

.nk-count-label { font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.nk-count-num { font-size: 20px; font-weight: 800; }
.nk-count-know .nk-count-num { color: var(--coral-ink); }

/* 헷갈렸던 유행 알아보기 (접고 펼치기) */
.nk-review {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.nk-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 12px;
  cursor: pointer;
  list-style: none;
}

.nk-review-head::-webkit-details-marker { display: none; }

.nk-review-head::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border: solid var(--coral-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.15s ease;
}

.nk-review[open] > .nk-review-head::after { transform: rotate(-135deg) translateY(-2px); }
.nk-review-head:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.nk-review-title { font-size: 18.5px; font-weight: 800; color: var(--coral-ink); }
.nk-review-count { font-size: 14px; font-weight: 600; color: var(--muted); }
.nk-review-hint { font-size: 13px; color: var(--muted); }
.nk-review-hint[hidden], .nk-review[open] .nk-review-hint { display: none; }

.nk-all-known {
  padding: 16px 18px;
  background: var(--coral-soft);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.nk-all-known[hidden], .nk-review-list[hidden] { display: none; }

.nk-review-list { display: flex; flex-direction: column; gap: 12px; }

.nk-review-item {
  padding: 16px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nk-review-term { font-size: 18px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.nk-review-artist { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }

.nk-review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.nk-tag {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}

.nk-tag-cat { background: var(--coral-soft); color: var(--coral-ink); }
.nk-tag-heard { background: var(--warn-bg); color: var(--warn-text); }
.nk-tag-no { background: #ecebe8; color: #4a4a4a; }

.nk-review-label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-ink);
}

.nk-review-text { margin-top: 2px; font-size: 15.5px; line-height: 1.7; color: #3a3a3a; }

.nk-review-src {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.nk-review-src-label { font-weight: 700; }
.nk-src-link { color: var(--accent-ink); overflow-wrap: anywhere; }

.nk-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.nk-actions .btn { width: 100%; }
.nk-btn-wide { grid-column: 1 / -1; }
.nk-actions-single { grid-template-columns: 1fr; }

.nk-share-note,
.nk-invalid-desc { margin-top: 14px; font-size: 14px; color: var(--muted); }
.nk-invalid-desc { margin-top: 0; font-size: 16px; color: #3f3f3f; }

/* 다른 테스트 둘러보기 */
.nk-more { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.nk-more-title { font-size: 17px; font-weight: 800; }

.nk-more-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.nk-more-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nk-more-ajae { background: var(--plum-soft, #f1edf4); }
.nk-more-travel { background: var(--accent-soft); }
.nk-more-all { background: var(--surface); border: 1px solid var(--line); }

.nk-result .disclaimer { margin-top: 28px; }

/* ---------- 화면 크기 ---------- */
.nk-br { display: none; }

@media (max-width: 374px) {
  .nk-cover-title { font-size: 29px; }
  .nk-term { font-size: 29px; }
  .nk-term.is-long { font-size: 23px; }
  .nk-score-num { font-size: 60px; }
  .nk-result-title { font-size: 23px; }
  .nk-actions { grid-template-columns: 1fr; }
  .nk-count-label { font-size: 12.5px; }
}

@media (max-width: 420px) {
  .nk-br { display: inline; }
}

@media (hover: hover) {
  .nk-option:hover { border-color: var(--coral); }
  .nk-more-link:hover { text-decoration: underline; }
}

@media (hover: hover) and (pointer: fine) {
  .nk-key-hint { display: block; }
}

@media (min-width: 768px) {
  .nk-actions { grid-template-columns: 1fr 1fr 1fr; }
  .nk-btn-wide { grid-column: auto; }
  .nk-actions-single { grid-template-columns: minmax(0, 360px); }
  .nk-term { font-size: 40px; }
  .nk-term.is-long { font-size: 32px; }
}

@media (min-width: 1024px) {
  .container.nk { max-width: 720px; }
  .nk-cover-title { font-size: 46px; }
}
