/* 입문 안내 2차: 족보가 같을 때 · 포커 하는 법 · 규칙 처음부터 · 대회 참가 방법 (2026-11-05) */
.g2 { min-width: 0; }
.g2 .tp-card { min-width: 0; overflow-wrap: anywhere; word-break: keep-all; }
.g2 h2 { scroll-margin-top: 80px; }

/* 차례 칩 */
.g2-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.g2-toc li { margin: 0 !important; list-style: none !important; }
.g2-toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--bg2); font-size: 13px; color: var(--muted) !important; text-decoration: none !important; }
.g2-toc a:hover { border-color: var(--felt2); color: var(--felt-ink) !important; }
.g2-toc .tp-num { margin-right: 4px; color: var(--gold); }

/* 단계 머리 */
.g2-step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.g2-step b { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--felt); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.g2-step h2 { margin: 0 !important; }
.g2 h3.g2-h3 { margin: 16px 0 8px; font-size: 16px; font-weight: 700; color: var(--text); }

/* 요약 상자 */
.g2-note { margin: 14px 0 0 !important; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); font-size: 14px; }
.g2-note--gold { border-color: rgba(201, 165, 93, .45); background: var(--gold-bg); }
.g2-rule { margin: 14px 0; padding: 14px 16px; border-left: 3px solid var(--felt2); border-radius: 0 10px 10px 0; background: var(--felt-bg); }
.g2-rule p { margin: 0 !important; color: var(--text) !important; }

/* 카드 줄 (펠트 바탕) */
.g2-felt { margin: 14px 0 0; padding: 16px; border-radius: 12px; background: radial-gradient(120% 140% at 50% 0%, #1d6b4c 0%, #134a35 55%, #0e3526 100%); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .18); display: grid; gap: 12px; }
.g2-felt__row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.g2-felt .gd-demo__label { flex: 0 0 62px; }
.g2-felt .pc-row { margin: 0 !important; vertical-align: middle !important; }
.g2-felt__cap { margin: 0 !important; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); color: #e3efe9 !important; font-size: 14px; line-height: 1.75 !important; }

/* 두 사람 비교 예시 */
.g2-exs { display: grid; gap: 14px; margin-top: 14px; }
.g2-ex { min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.g2-ex__hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.g2-ex__hd b { flex: 0 0 auto; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--gold-bg); border: 1px solid rgba(201, 165, 93, .45); color: var(--gold-ink); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.g2-ex__hd h3 { margin: 0 !important; font-size: 16px !important; font-weight: 700; color: var(--text); }
.g2-ex__board { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px; border-radius: 10px; background: radial-gradient(120% 140% at 50% 0%, #1d6b4c 0%, #134a35 70%); }
.g2-ex__board .gd-demo__label { flex: 0 0 auto; color: rgba(255, 255, 255, .75); }
.g2-ex .pc-row { margin: 0 !important; vertical-align: middle !important; }
.g2-ex__hands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.g2-ex__p { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.g2-ex__p.is-win { border-color: rgba(42, 157, 111, .75); background: var(--felt-bg); }
.g2-ex__p.is-tie { border-color: rgba(201, 165, 93, .5); }
.g2-ex__who { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.g2-ex__tag { padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 11px; }
.g2-ex__tag.is-win { background: var(--felt); color: #fff; }
.g2-ex__tag.is-tie { background: var(--gold-bg); color: var(--gold-ink); border: 1px solid rgba(201, 165, 93, .45); }
.g2-ex__p p { margin: 8px 0 0 !important; font-size: 13px; line-height: 1.6 !important; color: var(--muted) !important; }
.g2-ex__p.is-win p { color: var(--felt-ink) !important; font-weight: 600; }
.g2-ex__why { margin: 12px 0 0 !important; font-size: 14px; line-height: 1.75 !important; }
.g2-ex__why strong { color: var(--felt-ink) !important; }

/* 표 */
.g2 .tp-table-wrap { margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; }
.g2 .tp-table td, .g2 .tp-table th { vertical-align: top; }
.g2 .tp-table tbody th { font-weight: 700; color: var(--text); white-space: nowrap; }
.g2-tb--left td { text-align: left; color: #cfd3d1; line-height: 1.65; }
.g2-tb--num td { white-space: nowrap; }
.g2-tb__win td, .g2-tb__win th { background: var(--felt-bg); }
.g2-src { margin: 8px 0 0 !important; font-size: 12px !important; color: var(--dim) !important; line-height: 1.6 !important; }

/* 자리 줄 (규칙 1단계) */
.g2-seats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 14px 0 6px; }
.g2-seats .gd-seat { min-width: 0; }
.g2-seats .gd-seat.is-btn { border-color: rgba(201, 165, 93, .7); background: var(--gold-bg); }

/* 체크 목록 */
.g2-check { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.g2-check li { position: relative; margin: 0 !important; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); list-style: none !important; }
.g2-check li:last-child { border-bottom: 0; }
.g2-check li::before { content: "✓"; position: absolute; left: 4px; top: 8px; color: var(--felt-ink); font-weight: 800; }

/* 자주 묻는 질문 */
.g2-faq details { border-top: 1px solid var(--line); }
.g2-faq details:first-of-type { border-top: 0; }
.g2-faq summary { position: relative; padding: 13px 28px 13px 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--text); line-height: 1.6; }
.g2-faq summary::-webkit-details-marker { display: none; }
.g2-faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 18px; color: var(--felt-ink); }
.g2-faq details[open] summary::after { content: "−"; }
.g2-faq__a { padding: 0 0 14px; }

/* 링크 묶음 */
.g2-sec h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.g2-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.g2-links li { margin: 0; list-style: none; min-width: 0; }
.g2-links a { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); text-decoration: none; }
.g2-links a strong { display: block; font-size: 14px; color: var(--text); }
.g2-links a span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.g2-links a:hover { border-color: var(--felt2); }
.g2-links a:hover strong { color: var(--felt-ink); }

/* 행동·용어 목록: 이름 칸을 조금 넓게 (긴 용어가 세 줄로 꺾이지 않게) */
.g2 .gd-actions > div { grid-template-columns: 120px minmax(0, 1fr); }
.g2 .gd-actions dt { word-break: keep-all; overflow-wrap: normal; }

/* 단계 목록의 이름 칸이 길어도 넘치지 않게 */
.g2 .gd-steps li { grid-template-columns: 34px minmax(0, 130px) minmax(0, 1fr); }

/* 대회 참가 방법: 큰 숫자 */
.g2-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.g2-kpis div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.g2-kpis b { display: block; font-size: 20px; color: var(--gold-ink); }
.g2-kpis span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.g2 .sc-wrap { margin-top: 10px; }

@media (max-width: 640px) {
    .g2-ex { padding: 12px; }
    .g2-ex__hands { gap: 8px; }
    .g2-ex__p { padding: 9px 10px; }
    .g2-ex__board { padding: 10px; }
    .g2-felt { padding: 14px 12px; }
    .g2-felt .gd-demo__label { flex-basis: 100%; }
    .g2-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .g2 .gd-steps li { grid-template-columns: 34px minmax(0, 1fr); }
    .g2-links { grid-template-columns: minmax(0, 1fr); }
    .g2-kpis { grid-template-columns: minmax(0, 1fr); }
    .g2 .tp-table tbody th { white-space: normal; }
    .g2 .tp-table thead th, .g2-tb--num td { white-space: normal; }
    .g2 .gd-actions > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
