/* 이름궁합 테스트 - 공통 스타일 (selflove 탑메뉴 구조 참고, 연애 테마 색상) */
body { background: #fff7f8; }

.container { padding-top: 18px; }
.navbar { border-radius: 0; border-bottom: 1px solid #ffe1e6; background: #fff; }
.navbar-brand { padding-top: 10px; padding-bottom: 10px; }
.navbar-brand img { height: 30px; width: auto; }

.hero-section { background: #fff; color: #7a2334; padding: 48px 20px 40px; text-align: center; border-bottom: 1.5px solid #ffe1e6; margin-bottom: 28px; }
.hero-section h1 { font-size: 28px; font-weight: 900; margin: 0 0 12px; line-height: 1.3; color: #7a2334; }
.hero-section p { font-size: 15px; color: #9a5b68; margin: 0 0 28px; line-height: 1.7; }
.hero-badge { display: inline-block; background: #fff0f2; border: 1px solid #ffd3da; border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700; color: #e0355c; letter-spacing: .5px; margin-bottom: 18px; }
.start-btn { display: inline-block; background: linear-gradient(135deg, #c81f47, #ff5c7a); color: #fff; text-decoration: none; padding: 15px 40px; border-radius: 50px; font-size: 17px; font-weight: 900; box-shadow: 0 4px 20px rgba(200,31,71,.3); transition: transform .15s; }
.start-btn:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }

.type-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.type-card { flex: 1; min-width: 140px; background: #fff; border-radius: 12px; padding: 18px 14px; text-align: center; box-shadow: 0 2px 8px rgba(200,60,90,.08); border: 1.5px solid #ffe1e6; }
.type-card .icon { font-size: 28px; margin-bottom: 8px; }
.type-card .name { font-size: 14px; font-weight: 800; color: #7a2334; margin-bottom: 4px; }
.type-card .desc { font-size: 11px; color: #9ca3af; line-height: 1.5; }

.feature-list { background: #fff; border-radius: 12px; padding: 22px 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(200,60,90,.08); border: 1.5px solid #ffe1e6; }
.feature-list li { list-style: none; padding: 6px 0; font-size: 14px; color: #4b5563; border-bottom: 1px solid #fff0f2; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li i { color: #e0355c; margin-right: 8px; width: 16px; text-align: center; }

.cnt-badge { display: inline-block; background: #fff0f2; border: 1px solid #ffd3da; border-radius: 20px; padding: 4px 14px; font-size: 13px; color: #e0355c; font-weight: 700; margin-bottom: 20px; }

/* 이름 입력 폼 */
.nc-card { background: #fff; border-radius: 14px; padding: 26px 22px; box-shadow: 0 2px 10px rgba(200,60,90,.08); border: 1.5px solid #ffe1e6; margin-bottom: 20px; max-width: 560px; margin-left: auto; margin-right: auto; }
.nc-input-group { margin-bottom: 16px; }
.nc-input-group label { display: block; font-size: 13px; font-weight: 800; color: #7a2334; margin-bottom: 6px; }
.nc-input { width: 100%; height: 50px; border: 2px solid #ffd3da; border-radius: 10px; padding: 0 16px; font-size: 17px; font-weight: 700; color: #333; text-align: center; }
.nc-input:focus { outline: none; border-color: #e0355c; }
.nc-input.nc-error { border-color: #dc2626; }
.nc-err-msg { color: #dc2626; font-size: 12px; margin-top: 6px; display: none; }
.nc-vs { text-align: center; font-weight: 900; color: #ffb3c1; font-size: 20px; margin: -4px 0 12px; }

/* 결과 페이지 */
.nc-result-hero { text-align: center; padding: 34px 20px 24px; }
.nc-pct { font-size: 56px; font-weight: 900; color: #e0355c; line-height: 1; margin: 6px 0; }
.nc-tier-label { font-size: 22px; font-weight: 900; color: #7a2334; margin-bottom: 10px; }
.nc-names { font-size: 16px; font-weight: 700; color: #9a5b68; margin-bottom: 4px; }
.nc-desc { font-size: 14px; color: #4b5563; line-height: 1.8; max-width: 480px; margin: 0 auto; }

.nc-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 6px; }
.nc-cat-card { background: #fff0f2; border: 1px solid #ffd3da; border-radius: 10px; padding: 10px 6px; text-align: center; }
.nc-cat-icon { font-size: 18px; line-height: 1; }
.nc-cat-label { font-size: 11px; font-weight: 700; color: #7a2334; margin: 4px 0 2px; }
.nc-cat-pct { font-size: 15px; font-weight: 900; color: #e0355c; font-variant-numeric: tabular-nums; }

.nc-board-wrap { overflow-x: auto; margin: 18px 0; }
.nc-board-row { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.nc-board-cell { min-width: 28px; height: 28px; border-radius: 6px; background: #fff0f2; color: #e0355c; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* 모바일 반응형 */
@media (max-width: 767px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .nc-card { padding: 20px 16px; }
  .hero-section { padding: 34px 14px 28px; }
  .jumbotron { padding: 22px 16px !important; }
}

@media (max-width: 480px) {
  .hero-section h1 { font-size: 22px; }
  .hero-section p { font-size: 13.5px; }
  .type-grid { gap: 8px; }
  .type-card { min-width: 130px; padding: 14px 10px; }
  .nc-pct { font-size: 44px; }
  .nc-names { font-size: 14px; }
  .nc-tier-label { font-size: 19px; }
  .start-btn { padding: 14px 28px; font-size: 16px; width: 100%; box-sizing: border-box; }
  .nc-board-cell { min-width: 24px; height: 24px; font-size: 11px; }
}

@media (max-width: 360px) {
  .nc-card { padding: 16px 12px; }
  .nc-pct { font-size: 38px; }
  .type-card { min-width: 100%; }
  .nc-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 입력/버튼 터치 타겟 확보 */
.nc-input, .start-btn, .btn-lg { min-height: 44px; }
