/*
 * text-wrap.css — 한글 줄바꿈 (작업 B, 2026-11-26)
 * 단어(어절) 단위로 줄을 바꾸고, 어절이 박스보다 길면(긴 이름·URL·영문) 그때만 글자 단위로 끊는다.
 * 상속 규칙 한 곳에서 처리한다. 이미 word-break/overflow-wrap을 지정한 선택자는 그 값을 그대로 쓴다.
 * 제목(h1~h3, 질문 카드 제목)은 text-wrap:balance로 줄 길이를 고르게 맞춘다.
 * index.html의 마지막 스타일시트(type-floor.css 뒤)로 둔다.
 */
body,
main,
header,
nav,
footer,
dialog,
#toast{word-break:keep-all;overflow-wrap:anywhere}

h1,
h2,
h3,
.editorial-question h2,
.home-question-title,
.hero-copy h2{text-wrap:balance}

/* 카드 문장·설명: 마지막 줄에 한두 글자만 남지 않게 한다 */
p,
small,
li,
button,
label{text-wrap:pretty}

/* 게임 카테고리 탭: 라벨 아래에 설명을 두어 "…재미"만 다음 줄로 떨어지지 않게 한다 */
.party-category-tabs button{flex-direction:column;gap:2px;text-align:center}
.party-category-tabs button small{margin:0}

/* 배지: 폭이 내용에 맞춰 줄어드는 요소라 overflow-wrap:anywhere가 글자 단위로 끊는다("99+" → "9"). 한 줄로 고정한다 */
.nav-unread-badge{white-space:nowrap}
