/* 시안 B 공통 — 다크 매거진 · 포인트 컬러 주황 */
body { --on-brand: #ffffff; }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { filter: brightness(1.07); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); }

/* GNB */
.gnb { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.gnb-in { max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.gnb .logo { padding: 0; font-size: 20px; }
.gnb nav { display: flex; gap: 4px; }
.gnb nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.gnb nav a:hover, .gnb nav a.on { color: var(--text); background: var(--surface-2); }
.gnb nav a.on { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }
.gnb .sp { flex: 1; }
.gnb .mini-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--surface-2); color: var(--text-3); font-size: 13.5px; width: 260px; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
section.blk { margin-top: 56px; }
.crumb { font-size: 13px; color: var(--text-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--text); }
.crumb svg.lucide { width: 14px; height: 14px; }

.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.chip { background: var(--surface); }

.ad-slot { border: 1px dashed var(--line); border-radius: 16px; display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: 12.5px; font-weight: 600; min-height: 110px; background: repeating-linear-gradient(45deg, transparent 0 10px, var(--surface) 10px 20px); }
.ad-slot b { display: block; font-size: 11px; letter-spacing: .1em; }

.lock-msg { position: absolute; left: 50px; top: -6px; z-index: 3; font-size: 12px; font-weight: 700; background: var(--brand); color: var(--on-brand); padding: 5px 10px; border-radius: 8px; }
.track { position: relative; }

footer.site { margin-top: 80px; border-top: 1px solid var(--line); padding: 32px 0 60px; color: var(--text-3); font-size: 13px; }

/* ---------- SNS 포스트 카드 ---------- */
.feed-masonry { columns: 3 320px; column-gap: 16px; }
.feed-masonry .post { break-inside: avoid; margin-bottom: 16px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 12px; }
.post:hover { border-color: #3c3c45; }
.post-h { display: flex; align-items: center; gap: 10px; }
.pav { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 15px; }
.post-h .who { min-width: 0; line-height: 1.3; }
.post-h .who b { font-size: 14.5px; display: flex; align-items: center; gap: 4px; }
.post-h .who b svg.lucide { width: 15px; height: 15px; color: #1d9bf0; fill: #1d9bf0; stroke: var(--surface); }
.post-h .who span { font-size: 13px; color: var(--text-3); }
.plat { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; flex: none; }
.plat.x { background: #000; border: 1px solid #333; }
.plat.th { background: #000; border: 1px solid #333; font-size: 15px; }
.plat.rd { background: #ff4500; border-radius: 50%; }
.plat.yt { background: #ff0033; }
.plat.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ptext { font-size: 15px; line-height: 1.6; white-space: pre-line; }
.ptext .hash, .ptext .men { color: #5fb0ff; }
.ptext .more { color: var(--text-3); }
.sub-rd { font-size: 12.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.sub-rd b { color: var(--text); }
.rd-title { font-size: 17px; font-weight: 800; line-height: 1.35; }
.pmedia { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.pmedia.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.pmedia .thumb { border-radius: 0; aspect-ratio: 16 / 10; }
.pmedia.tall .thumb { aspect-ratio: 9 / 12; }
.pmedia .play-ov { position: absolute; inset: 0; display: grid; place-items: center; }
.pmedia .play-ov span { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.pmedia .play-ov svg.lucide { width: 22px; height: 22px; fill: #fff; }
.pmedia .dur { position: absolute; right: 8px; bottom: 8px; font-size: 11.5px; font-weight: 700; background: rgba(0,0,0,.7); padding: 2px 6px; border-radius: 5px; }
.pblock { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.pblock-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--line); }
.pblock-h .cp { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--brand-ink); }
.pblock-h svg.lucide { width: 14px; height: 14px; }
.pblock pre { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.6; color: var(--text-2); padding: 10px 12px; white-space: pre-wrap; word-break: break-word; max-height: 140px; overflow: hidden; }
.pacts { display: flex; align-items: center; justify-content: space-between; color: var(--text-3); font-size: 13px; padding-top: 2px; }
.pacts span { display: flex; align-items: center; gap: 6px; }
.pacts svg.lucide { width: 17px; height: 17px; }
.pacts .liked { color: #f91880; }
.pacts .liked svg.lucide { fill: #f91880; }
.pacts .rt { color: #00ba7c; }
.curate { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); background: var(--brand-soft); border-radius: 10px; padding: 9px 11px; line-height: 1.5; }
.curate svg.lucide { width: 15px; height: 15px; color: var(--brand); margin-top: 2px; }
.curate b { color: var(--brand-ink); }
.post .tagrow { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-votes { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 99px; padding: 4px 10px; font-weight: 700; color: var(--text); }
.rd-votes svg.lucide { width: 15px; height: 15px; }
.rd-votes .up { color: #ff4500; }

@media (max-width: 1100px) { .gnb .mini-search { display: none; } }
@media (max-width: 760px) {
  .gnb nav { display: none; }
  .container, .gnb-in { padding: 0 16px; }
}

/* ---------- 게임 임베드 (매거진 · 사운드 → 쇼케이스 연결) ---------- */
.game-embed { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; font-size: 15px; line-height: 1.5; }
.ge-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text-2); margin-bottom: 12px; }
.ge-h svg.lucide { color: var(--brand); }
.ge-h a { margin-left: auto; color: var(--brand-ink); font-weight: 700; font-size: 12.5px; }
.ge-main { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; padding: 8px; border-radius: 14px; }
.ge-main:hover { background: var(--surface-2); }
.ge-main .thumb { aspect-ratio: 4 / 3; }
.ge-main .thumb > .badge { background: rgba(0,0,0,.65); color: #9db8ff; }
.ge-info b { font-size: 18px; color: var(--text); display: block; }
.ge-info small { font-size: 12.5px; color: var(--text-3); }
.ge-info p { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.ge-chips, .res-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ge-chips span, .res-chips span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); }
.ge-chips svg.lucide, .res-chips svg.lucide { width: 12px; height: 12px; }
.ge-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ge-sub a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; }
.ge-sub a:hover { background: var(--surface-2); }
.ge-sub .thumb { width: 52px; flex: none; aspect-ratio: 1; border-radius: 10px; }
.ge-sub .thumb .ico svg.lucide { width: 20px; height: 20px; }
.ge-sub b { font-size: 14px; display: block; color: var(--text); }
.ge-sub small { font-size: 12px; color: var(--text-3); }
.ext { display: inline-flex; align-items: center; gap: 4px; }
.ext svg.lucide { width: 13px; height: 13px; }
@media (max-width: 640px) { .ge-main { grid-template-columns: 1fr; } .ge-sub { grid-template-columns: 1fr; } }

/* 버튼 · 칩 안의 서버 아이콘(GameUi::icon — 크기 속성 없는 svg)이 0 크기로 줄지 않게 */
.btn > svg:not(.lucide), .chip > svg:not(.lucide), .hb-btn > svg:not(.lucide) { width: 16px; height: 16px; flex: none; }

/* 작성자 아바타 — 프로필 사진 (MemberUi::author) */
.pav.has-img, .cm-avatar.has-img, .cm-av.has-img { overflow: hidden; background: var(--surface-2); padding: 0; }
.pav.has-img img, .cm-avatar.has-img img, .cm-av.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-avatar[style] { color: #fff; }
