/* 노에러 룰북 스킨 — 종이·남색 잉크·교정용 빨간 펜 */
:root {
	--bg: #fbfaf6;
	--surface: #f3f0e7;
	--surface-2: #ebe6da;
	--ink: #14213a;
	--ink-2: #44506a;
	--ink-3: #6f7891;
	--line: #e2dccd;
	--brand: #1b3a6b;
	--brand-ink: #ffffff;
	--brand-soft: #e9edf4;
	--accent: #d2462d;
	--ok: #1f7a5a;
	--font-head: "Noto Serif KR", "Nanum Myeongjo", serif;
	--font-num: "Pretendard Variable", Pretendard, sans-serif;
	--radius: 8px;
	--radius-lg: 12px;
	--shadow-lg: 0 12px 36px rgba(20, 33, 58, .12);
	--footer-bg: #101b30;
	--footer-mark: #fbfaf6;
}
.brand-name { font-family: var(--font-body); font-weight: 800; }
.brand-mark { color: var(--ink); }
.topbar { background: var(--ink); }
.site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.btn-brand { background: var(--ink); }
.eyebrow { color: var(--accent); letter-spacing: .12em; }
.sec-title, .page-title, .article-title { font-weight: 700; }
.card { background: #fff; }
.card-title, .prose h2, .prose h3, .box-h { font-family: var(--font-head); font-weight: 700; }
.card-cat { color: var(--accent); }
.prose h2 { border-top: 1px solid var(--line); padding-top: 1.2em; }
.prose h2::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-bottom: 14px; }
.summary-box { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.summary-box .box-title { color: var(--ink); }
.summary-box li::marker { color: var(--accent); }
.page-head { background: var(--surface) linear-gradient(transparent 31px, rgba(27,58,107,.06) 32px) 0 0 / 100% 32px; }
.checks li { background: #fff; }

/* 첫 화면 머리 */
.nh { position: relative; padding: 64px 0 0; background:
	linear-gradient(90deg, rgba(210,70,45,.18) 1px, transparent 1px) 72px 0 / 100% 100% no-repeat,
	repeating-linear-gradient(transparent 0 35px, rgba(27,58,107,.07) 35px 36px);
	border-bottom: 1px solid var(--line); }
.nh-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.nh-title { font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; line-height: 1.22; letter-spacing: -0.035em; }
.nh-brand { display: block; font-family: var(--font-body); font-size: 17px; font-weight: 800; letter-spacing: 0; color: var(--accent); margin-bottom: 14px; }
.nh-lead { margin-top: 22px; font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 540px; }
.nh-search { margin-top: 30px; max-width: 560px; }
.nh-search input { height: 54px; background: #fff; }
.nh-search .btn { height: 54px; padding: 0 26px; }
.nh-hot { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.nh-hot a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-weight: 600; }
.nh-hot a:hover { border-color: var(--ink); color: var(--ink); }
.nh-visual { position: relative; }
.nh-photo { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(20,33,58,.35); transform: rotate(.6deg); border: 8px solid #fff; }
.nh-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.proof-card { position: absolute; left: -36px; bottom: -28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); }
.proof-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.proof-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.proof-card li { display: flex; align-items: center; gap: 8px; }
.proof-card .ico { color: var(--accent); }
.nh-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 72px 0 0; border-top: 1px solid var(--line); }
.nh-stats > div { padding: 22px 0 26px; border-right: 1px solid var(--line); padding-left: 24px; }
.nh-stats > div:first-child { padding-left: 0; }
.nh-stats > div:last-child { border-right: 0; }
.nh-stats dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.nh-stats dd { margin: 4px 0 0; font-family: var(--font-num); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.nh-stats small { font-size: 15px; font-weight: 600; margin-left: 3px; color: var(--ink-2); }
@media (max-width: 960px) {
	.nh { background: repeating-linear-gradient(transparent 0 35px, rgba(27,58,107,.07) 35px 36px); padding-top: 40px; }
	.nh-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.proof-card { left: 12px; bottom: -22px; }
	.nh-stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
	.nh-stats > div:nth-child(2) { border-right: 0; }
	.nh-stats > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
	.nh-stats > div:nth-child(4) { border-top: 1px solid var(--line); }
}

/* 게임별 룰북 */
.game { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.game:hover { color: inherit; border-color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.game-group { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.game-name { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.game-desc { color: var(--ink-2); font-size: 15px; line-height: 1.65; min-height: 3.3em; }
.game-spec { display: flex; gap: 0; margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 14px; font-weight: 600; }
.game-spec > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.game-spec em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.lv { display: inline-flex; gap: 3px; margin-top: 5px; }
.lv b { width: 14px; height: 6px; border-radius: 2px; background: var(--line); }
.lv-1 b:nth-child(-n+1), .lv-2 b:nth-child(-n+2), .lv-3 b:nth-child(-n+3) { background: var(--ink); }
.game-go { position: absolute; top: 24px; right: 22px; color: var(--ink-3); transition: transform .2s, color .2s; }
.game:hover .game-go { color: var(--accent); transform: translateX(3px); }

/* 족보 */
.hands-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.hands { margin: 0; background: #fff; }
.hands .rank { font-family: var(--font-num); font-weight: 800; color: var(--accent); width: 56px; }
.hands .hname { font-weight: 700; white-space: nowrap; }
.hands .hcards { white-space: nowrap; }
.hands td { vertical-align: middle; }
.seotda-card { background: var(--ink); color: #e8ecf5; border-radius: 12px; padding: 28px; }
.seotda-card .eyebrow { color: #f08a72; }
.seotda-card h3 { font-size: 24px; color: #fff; margin-bottom: 18px; }
.seotda-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: sd; }
.seotda-card li { counter-increment: sd; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; }
.seotda-card li::before { content: counter(sd); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.seotda-card strong { color: #fff; }
.seotda-card li span { font-size: 14px; color: rgba(232,236,245,.72); line-height: 1.55; }
.seotda-sp { margin: 20px 0 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; color: rgba(232,236,245,.8); }
.seotda-card .more { color: #fff; }
.seotda-card .more:hover { color: #f08a72; }
@media (max-width: 960px) { .hands-grid { grid-template-columns: minmax(0, 1fr); } }

/* 교정 노트 */
.proof-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.proof-list li { display: grid; grid-template-columns: 64px 1fr 44px; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.proof-no { font-family: var(--font-num); font-size: 26px; font-weight: 800; color: var(--line); }
.proof-wrong { display: inline; color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.proof-wrong::after { content: "  교정"; font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; display: inline-block; margin-left: 10px; padding: 1px 8px; border: 1px solid var(--accent); border-radius: 4px; vertical-align: 2px; }
.proof-right { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.65; }
.proof-link { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.proof-link:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .proof-list li { grid-template-columns: 40px 1fr; } .proof-link { display: none; } .proof-no { font-size: 20px; } }

/* 편집 원칙 */
.editorial { background: var(--ink); color: #e8ecf5; }
.editorial .sec-title { color: #fff; }
.editorial .sec-desc { color: rgba(232,236,245,.75); margin-bottom: 28px; }
.editorial .eyebrow { color: #f08a72; }
.editorial .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.editorial .btn-ghost:hover { border-color: #fff; }
.ed-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.ed-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ed-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); }
.ed-steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.ed-steps span { grid-row: span 2; font-family: var(--font-num); font-weight: 800; font-size: 22px; color: #f08a72; }
.ed-steps h3 { font-size: 20px; color: #fff; }
.ed-steps p { color: rgba(232,236,245,.72); font-size: 15px; }
@media (max-width: 960px) { .ed-in { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* 좁은 화면 */
@media (max-width: 640px) {
	.hands th:nth-child(3), .hands td.hcards { display: none; }
	.hands td, .hands th { padding: 12px 12px; }
	.game { padding: 20px 20px 18px; gap: 8px; }
	.game-name { font-size: 21px; }
	.game-desc { min-height: 0; }
	.nh-title { font-size: 32px; }
	.proof-right { font-size: 16px; }
}
.site-footer .brand-mark { --logo-line: #14213a; }
