/* =========================================================
   이름 수비학 — 스타 · 하트 넘버  (/{lang}/name_number)
   time.css(입력 칸) · birth-number.css(카드) 위에 얹습니다.
   ========================================================= */

/* ---------- 입력: 성 · 이름 두 칸 ---------- */
.nn-row { align-items: flex-end; }
.nn-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nn-field-s { flex: 0 0 96px; }
.nn-field-g { flex: 1 1 auto; }
.nn-label { padding-left: 4px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.nn-input { letter-spacing: .12em; padding-left: 12px; padding-right: 12px; }
.nn-field-g .nn-input { padding-right: 40px; }
.nn-go { align-self: stretch; margin-top: 21px; }
.nn-hint.is-error { color: #c0564b; font-weight: 800; }

/* ---------- 결과 위 이름 ---------- */
.nn-name {
    margin: 18px 0 0;
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: .14em;
}
.nn-name b { color: var(--primary); }

/* ---------- 두 카드 ---------- */
.nn-two { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 760px); }
.nn-card-star  { background: linear-gradient(150deg, rgba(201,161,74,.18), rgba(201,161,74,.04)), var(--surface); }
.nn-card-heart { background: linear-gradient(150deg, rgba(214,110,140,.16), rgba(214,110,140,.04)), var(--surface); }
.nn-card-star  .bn-kicker i { color: #c9a14a; }
.nn-card-heart .bn-kicker i { color: #d66e8c; }
.nn-card-star  .bn-number { color: #b8902f; }
.nn-card-heart .bn-number { color: #c75a7b; }
html[data-theme="dark"] .nn-card-star  .bn-number { color: #e6c477; }
html[data-theme="dark"] .nn-card-heart .bn-number { color: #f0a0b8; }

/* ---------- 글자별 계산 ---------- */
.nn-letters { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.nn-letters li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 10px;
    background: var(--soft, rgba(0, 0, 0, .04));
    font-size: 12.5px;
}
.nn-char { flex: 0 0 auto; font-size: 17px; font-weight: 900; min-width: 22px; text-align: center; }
.nn-jamo { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-width: 0; color: var(--muted); }
.nn-jamo em { font-style: normal; opacity: .6; }
.nn-pair { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; color: var(--text); }
.nn-pair i { font-style: normal; font-weight: 700; color: var(--muted); }
.nn-sum { flex: 0 0 auto; font-weight: 900; }

/* ---------- 자모 숫자표 ---------- */
.nn-table-box {
    width: min(100%, 760px);
    margin: 26px auto 0;
    padding: 16px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.nn-table-h { margin: 0 0 10px; font-size: 15px; font-weight: 900; }
.nn-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nn-table { width: 100%; min-width: 300px; border-collapse: collapse; text-align: center; font-size: 14px; }
.nn-table th, .nn-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.nn-table thead th { font-size: 12px; font-weight: 900; color: var(--muted); }
.nn-table tbody th { font-size: 12px; font-weight: 900; white-space: nowrap; padding-right: 10px; text-align: left; }
.nn-table td { font-weight: 800; font-size: 16px; }
.nn-table tr.is-v td { color: var(--primary); }
.nn-split { margin: 10px 0 0; font-size: 12px; line-height: 1.65; color: var(--muted); word-break: keep-all; }

@media (max-width: 640px) {
    .nn-two { grid-template-columns: 1fr; }
    .nn-field-s { flex-basis: 78px; }
    .nn-name { font-size: 22px; }
    .nn-table-box { padding: 14px 10px; }
    .nn-table th, .nn-table td { padding: 6px 1px; }
    .nn-table td { font-size: 14px; }
    .nn-table tbody th { padding-right: 4px; font-size: 11px; }
}


/* ===== mobile-text v1 — 휴대폰에서 작은 글씨 키우기 (자동 생성: 14px 미만만, 원래 값 → 새 값) ===== */
@media (max-width: 640px) {
  .nn-label { font-size: 13px; } /* 11.5 */
  .nn-letters li { font-size: 13.5px; } /* 12.5 */
  .nn-table thead th { font-size: 13px; } /* 12 */
  .nn-table tbody th { font-size: 12.5px; } /* 11 */
  .nn-split { font-size: 13px; } /* 12 */
}
