/* 레트로 오락실 게시판(한국식 목록) — 읽기 쉽게: 제목 16px, 본문 16px·줄 간격 1.8 */
.board { position: fixed; inset: 0; z-index: 25; background: var(--bg); overflow: auto; }
.board[hidden] { display: none; }
body.board-open { overflow: hidden; }
.bd-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
.bd-top .btn .ico { width: 18px; height: 18px; margin-right: 4px; stroke-width: 2.4; }
.bd-logo { font-size: 19px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.bd-logo b { color: var(--accent); }
.bd-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; max-width: 1240px; margin: 0 auto; padding: 18px 18px 60px; }
.bd-cats { position: sticky; top: 72px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.bd-cat { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; border-radius: 10px; color: #c9cfdd; text-decoration: none; font-size: 15px; }
.bd-cat:hover { background: var(--panel2); color: #fff; }
.bd-cat.on { background: #262c45; color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.bd-cat small { font-size: 12px; color: #8a92a8; }
.bd-cat small.new { color: #ff8a8a; font-weight: 700; }
.bd-cat-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.bd-main { min-width: 0; }
.bd-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bd-head h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.bd-head h3 small { font-size: 15px; color: #a9b1c6; font-weight: 400; }
.bd-count { color: #8a92a8; font-size: 14px; }
.bd-head .bd-write, .bd-head .btn:last-child { margin-left: auto; }
.bd-hint { color: #98a0b4; font-size: 13.5px; line-height: 1.6; margin: 0 0 12px; word-break: keep-all; }
.bd-empty { padding: 34px 16px; text-align: center; color: #98a0b4; font-size: 15px; line-height: 1.7; }
.bd-empty.small { padding: 14px; font-size: 14px; }
.row-btns.center { justify-content: center; margin-top: 14px; }

/* 목록 */
.bd-list { border-top: 2px solid #3a4158; }
.bd-row { display: grid; grid-template-columns: 64px 96px minmax(0, 1fr) 130px 64px 56px 52px; align-items: center; gap: 8px; padding: 11px 10px;
  border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.bd-row > span { min-width: 0; }
a.bd-row:hover { background: #1c2030; }
.bd-row.bd-th { color: #8a92a8; font-size: 13px; padding: 9px 10px; background: #171a24; }
.bd-row .c0, .bd-row .c4, .bd-row .c5, .bd-row .c6 { text-align: center; color: #98a0b4; font-size: 13px; }
.bd-row .c1 { color: #a9b1c6; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-row .c2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bd-row .c3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-row .c6.has { color: #ffb86b; font-weight: 700; }
.bd-t { font-size: 15.5px; font-weight: 500; color: #f2f4fa; word-break: break-all; }
a.bd-row:visited .bd-t { color: #b9bfd0; }
.bd-cc { color: #ff8a6b; font-size: 13px; }
.bd-new { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: #e5484d; border-radius: 4px; padding: 0 4px; line-height: 15px; }
.bd-gtag { font-size: 12px; color: #9cc8ff; border: 1px solid #2f5a8a; border-radius: 999px; padding: 0 7px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-ico { display: inline-block; width: 15px; height: 15px; opacity: .75; background: center/contain no-repeat; }
.bd-ico.img { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b1c6' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='9' cy='10' r='1.6'/><path d='M4 17l5-5 4 4 3-3 4 4'/></svg>"); }
.bd-ico.lock { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b1c6' stroke-width='2'><rect x='5' y='11' width='14' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>"); }
.bd-row.pin { background: #1d2134; }
.bd-row.pin .bd-t { font-weight: 700; }
.bd-pin { font-style: normal; display: inline-block; font-size: 12px; font-weight: 700; color: #15161c; background: var(--accent); border-radius: 6px; padding: 1px 7px; }
.bd-row.best .c0::before { content: "★ "; color: #ffb86b; }
.bd-hid { font-size: 11.5px; color: #ff9a9a; border: 1px solid #6b2424; border-radius: 6px; padding: 0 6px; }
.bd-st { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.st-open, .st-wait { color: #9ad8ff; border-color: #1f5a7a; background: #0f2a3a; }
.st-checking { color: #ffd76a; border-color: #6b5612; background: #2a2410; }
.st-done, .st-answered { color: #7ee2a8; border-color: #1f6b44; background: #10301f; }
.st-hold { color: #b9bfd0; border-color: #4a5068; background: #20232f; }
.bd-nick { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.bd-nick.staff { color: #ffd76a; font-weight: 700; }
.bd-staff, .bd-writer { font-style: normal; font-size: 11px; font-weight: 700; padding: 0 5px; border-radius: 5px; }
.bd-staff { color: #15161c; background: var(--accent); }
.bd-writer { color: #9cc8ff; border: 1px solid #2f5a8a; }
.bd-mmeta { display: none; }
.bd-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 18px 0 12px; }
.bd-pages a { min-width: 36px; padding: 7px 10px; text-align: center; border-radius: 8px; color: #c9cfdd; text-decoration: none; border: 1px solid transparent; font-size: 14px; }
.bd-pages a:hover { border-color: var(--line); }
.bd-pages a.on { background: var(--pick); color: #fff; font-weight: 700; }
.bd-search { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.bd-search select, .bd-search input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; }
.bd-search input { width: min(280px, 60vw); }

/* 글 보기 */
.bd-post { border-top: 2px solid #3a4158; padding-top: 16px; }
.bd-post-cat { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bd-post-cat a { color: var(--accent); text-decoration: none; font-weight: 700; }
.bd-post-title { margin: 8px 0 10px; font-size: 24px; line-height: 1.4; letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: anywhere; }
.bd-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: #a9b1c6; font-size: 14px; }
.bd-post-meta .r { margin-left: auto; }
.bd-text { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-size: 16px; line-height: 1.85; color: #e7eaf2; padding: 22px 2px 8px; min-height: 80px; }
.bd-text a { color: #8fb7ff; }
.bd-imgs { display: flex; flex-direction: column; gap: 12px; margin: 8px 0; }
.bd-imgs img { max-width: 100%; max-height: 80vh; border-radius: 10px; border: 1px solid var(--line); display: block; }
.bd-game { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 10px 12px; background: #1a1e2c; border: 1px solid #2c3246; border-radius: 12px; }
.bd-game img, .bd-game-ph { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: #252a38; flex: 0 0 auto; }
.bd-game-t { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.bd-game-t small { color: #a9b1c6; font-size: 12.5px; }
.bd-game-t b { font-size: 15.5px; }
.bd-like-row { display: flex; justify-content: center; margin: 22px 0 10px; }
.bd-like { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; padding: 12px 18px; border-radius: 16px; border: 2px solid #3a4158; background: #1a1e2c; color: #e8eaf0; cursor: pointer; font: inherit; }
.bd-like b { font-size: 22px; line-height: 1.1; }
.bd-like small { font-size: 13px; color: #a9b1c6; }
.bd-like-ico { width: 22px; height: 22px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb86b' stroke-width='2'><path d='M7 11v9H4v-9zM7 11l4-7c1.5 0 2.5 1 2.2 2.6L12.6 10H19a2 2 0 0 1 2 2.3l-1.2 6A2 2 0 0 1 17.8 20H7'/></svg>") center/contain no-repeat; }
.bd-like.on { border-color: #ffb86b; background: #2a2010; }
.bd-like.on b { color: #ffb86b; }
.bd-like:disabled { opacity: .55; cursor: default; }
.bd-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bd-acts .btn:first-child { margin-right: auto; }
.bd-admin { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0; padding: 10px 12px; border: 1px dashed #6b5612; border-radius: 10px; background: #1d1a10; font-size: 13px; }
.bd-admin b { color: var(--accent); margin-right: 4px; }
.bd-admin select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; }
.bd-cmts { margin-top: 20px; }
.bd-cmts h4 { margin: 0 0 8px; font-size: 16px; }
.bd-cmts h4 b { color: #ff8a6b; }
.bd-cmt-list { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.bd-cmt { padding: 12px 6px; border-bottom: 1px solid var(--line); }
.bd-cmt.reply { padding-left: 34px; background: #171a24; }
.bd-cmt.writer { box-shadow: inset 3px 0 0 #2f5a8a; }
.bd-cmt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.bd-re { color: #6b7389; margin-left: -20px; width: 14px; }
.bd-cmt-at { color: #8a92a8; font-size: 12.5px; }
.bd-cmt-body .bd-text { padding: 6px 0 4px; font-size: 15px; line-height: 1.7; min-height: 0; }
.bd-cmt-del { color: #8a92a8; font-size: 14px; padding: 4px 0; }
.bd-cmt-tools { display: flex; gap: 10px; font-size: 12.5px; }
.bd-cmt-tools button { background: none; border: 0; padding: 2px 0; color: #98a0b4; cursor: pointer; font: inherit; }
.bd-cmt-tools button:hover:not(:disabled) { color: #fff; text-decoration: underline; }
.bd-cmt-like.on { color: #ffb86b; font-weight: 700; }
.bd-cform { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.bd-cform textarea, .bd-form textarea, .bd-form input[type=text], .bd-form select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 15px; line-height: 1.6; resize: vertical; }
.bd-cform .row-btns { align-items: center; }
.bd-pn { margin-top: 18px; border-top: 1px solid var(--line); }
.bd-pn a { display: flex; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14.5px; }
.bd-pn a span { color: #8a92a8; flex: 0 0 56px; }
.bd-pn a b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-pn a:hover { background: #1c2030; }

/* 글쓰기 */
.bd-form { display: flex; flex-direction: column; gap: 10px; }
.bd-form-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px; }
.bd-form textarea { min-height: 300px; }
.bd-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bd-files label.btn { position: relative; overflow: hidden; cursor: pointer; }
.bd-files label.btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.bd-thumb { position: relative; }
.bd-thumb img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.bd-thumb button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #e5484d; color: #fff; font-weight: 700; cursor: pointer; }
.bd-gamechk { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.bd-gamechk input { width: 18px; height: 18px; accent-color: var(--pick); }
.btn.big-ish { padding: 10px 26px; font-size: 16px; }

/* 알림 */
.bd-notes { list-style: none; margin: 0; padding: 0; border-top: 2px solid #3a4158; }
.bd-notes li a { display: flex; flex-direction: column; gap: 3px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.bd-notes li a:hover { background: #1c2030; }
.bd-notes li.read a { opacity: .6; }
.bd-note-k { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.bd-note-t { font-size: 15px; }
.bd-notes small { color: #8a92a8; font-size: 12.5px; }

/* 위쪽 '게시판' 단추·게임 카드 고리 */
.board-btn { position: relative; }
.bd-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.bd-badge[hidden] { display: none; }
.cover-links { display: flex; gap: 14px; margin-top: 12px; }
.cover-links[hidden] { display: none; }
.linkbtn { background: none; border: 0; padding: 0; color: #9cc8ff; font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: #fff; }

/* 휴대폰 */
@media (max-width: 860px) {
  .bd-top { padding: 8px 12px; gap: 10px; }
  .bd-logo { font-size: 16px; }
  .bd-shell { grid-template-columns: 1fr; padding: 0 12px 50px; gap: 10px; }
  .bd-cats { position: sticky; top: 53px; z-index: 2; flex-direction: row; overflow-x: auto; gap: 4px; padding: 8px 0; margin: 0 -12px; padding-left: 12px; padding-right: 12px; background: var(--bg); scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .bd-cats::-webkit-scrollbar { display: none; }
  .bd-cat { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .bd-cat.on { box-shadow: none; border-color: var(--pick); background: var(--pick); }
  .bd-cat-sep { display: none; }
  .bd-head h3 { font-size: 19px; }
  .bd-row { display: block; padding: 12px 4px; }
  .bd-row.bd-th { display: none; }
  .bd-row .c0, .bd-row .c1, .bd-row .c3, .bd-row .c4, .bd-row .c5, .bd-row .c6 { display: none; }
  .bd-row .c2 { gap: 5px; }
  .bd-row.pin .c0 { display: inline; margin-right: 4px; }
  .bd-row.pin { display: flex; align-items: center; flex-wrap: wrap; }
  .bd-mmeta { display: block; width: 100%; margin-top: 5px; color: #8a92a8; font-size: 12.5px; }
  .bd-post-title { font-size: 20px; }
  .bd-post-meta .r { margin-left: 0; width: 100%; }
  .bd-text { font-size: 15.5px; }
  .bd-form-row { grid-template-columns: 1fr; }
  .bd-cmt.reply { padding-left: 26px; }
}
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
