:root {
  --bg: #eceef4;
  --surface: #ffffff;
  --tint: #f7f6fc;
  --line: #e2e3ec;
  --text: #1b1830;
  --sub: #55526b;
  --faint: #9492a6;
  --brand: #5a46d6;
  --brand-ink: #3d2ca8;
  --brand-soft: #efecff;
  --on-brand: #ffffff;
  --accent: #3d2ca8;
  --hot: #ff5a4e;
  --hot-soft: #ffece9;
  --ink: #1d1836; /* 헤더·1위 카드 등 항상 어두운 면 */
  --ink-accent: #a99bff;
  --radius: 14px;
  --tabbar-h: 58px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100e1a;
    --surface: #1b1830;
    --tint: #221e3b;
    --line: #2e2a4a;
    --text: #efedf8;
    --sub: #aba7c2;
    --faint: #77738f;
    --brand: #a99bff;
    --brand-ink: #c0b5ff;
    --brand-soft: #2a2350;
    --on-brand: #15112b;
    --accent: #c0b5ff;
    --hot: #ff7a6f;
    --hot-soft: #3a1f1d;
  }
}* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #efedf8; }
.top-in { max-width: 1200px; margin: 0 auto; padding: 8px 14px 6px; display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; flex-shrink: 0; color: #fff; }
.logo-mark { width: 32px; height: 33px; color: var(--ink-accent); flex-shrink: 0; }
.search svg { flex-shrink: 0; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; height: 34px; padding: 0 12px; color: #9d98ba; min-width: 0; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; padding: 0; color: #fff; font: inherit; font-size: 14px; }
.search input::placeholder { color: #9d98ba; }
.top-write, .top-login { display: none; }
.top-login { color: var(--sub); font-weight: 600; }
.chips { max-width: 1200px; margin: 0 auto; display: flex; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex-shrink: 0; padding: 8px 2px; margin-right: 14px; color: #aaa5c6; font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; }
.chips a.on { color: #fff; border-bottom-color: var(--ink-accent); }

.btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.top .btn-primary { background: var(--ink-accent); border-color: var(--ink-accent); color: #15112b; }
.top-user { flex-shrink: 0; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d6d0ff; font-weight: 700; font-size: 14px; }
.btn:disabled { opacity: 0.75; cursor: default; }

/* layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 12px 0; display: block; }
.side-l, .side-r { display: none; }
main { min-width: 0; }
main > section, main > article { margin-bottom: 14px; }
.card, .post, .comments, .simple { background: var(--surface); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 8px; }
.sec-head h1, .sec-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.sec-head a { color: var(--sub); font-size: 13px; }
.sec-desc { padding: 0 16px 10px; color: var(--sub); }

/* feed */


.post-card a { display: block; padding: 14px 16px; }
.post-card a:active { background: var(--bg); }
.pc-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); margin-bottom: 5px; }
.pc-rank { color: var(--brand-ink); font-size: 15px; font-weight: 800; min-width: 12px; }
.pc-board { color: var(--brand-ink); background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.post-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.4; margin-bottom: 4px; }
.post-card p { color: var(--sub); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-stat { display: flex; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--faint); }
/* 배지: HOT / NEW / 투표 */
.bdg { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; line-height: 1; padding: 3px 6px; border-radius: 5px; vertical-align: 2px; }
.bdg-hot { background: var(--hot); color: #fff; }
.bdg-new { background: var(--brand-soft); color: var(--brand-ink); }
.bdg-poll { border: 1px solid var(--line); color: var(--sub); padding: 2px 5px; }
.post-card h3 .bdg, .post h1 .bdg { margin-right: 5px; }
.post h1 .bdg { vertical-align: 4px; }
.rank .bdg { margin-left: 4px; vertical-align: 1px; }
.pc-stat .fire { color: var(--hot); font-weight: 700; }

/* 게시판 핫글 박스 */
.hotbox { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 16px; margin-bottom: 12px; }
.hotbox h2 { font-size: 13px; font-weight: 800; color: var(--hot); margin-bottom: 6px; }
.hotbox li a { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; }
.hotbox li b { color: var(--hot); width: 12px; flex-shrink: 0; }
.hotbox li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hotbox li em { font-style: normal; font-size: 12px; color: var(--faint); flex-shrink: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 실시간 순위 띠 (가로 스크롤) */
.ticker { padding: 12px 0 4px; }
.ticker ol { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.ticker ol::-webkit-scrollbar { display: none; }
.ticker li { flex: 0 0 72%; max-width: 300px; scroll-snap-align: start; }
.ticker a { border: 1px solid var(--line); display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; align-items: center; height: 100%; padding: 12px 14px; background: var(--surface); border-radius: 16px; }
.tk-rank { grid-row: span 2; font-size: 18px; font-weight: 800; color: var(--brand-ink); text-align: center; }
.tk-title { font-weight: 700; font-size: 14.5px; line-height: 1.35; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-meta { font-size: 12px; color: var(--faint); margin-top: 2px; }
.ticker .king a { background: var(--ink); }
.ticker .king .tk-title { color: #fff; }
.ticker .king .tk-meta { color: #aaa5c6; }
.crown { width: 22px; height: 22px; color: #f2b632; vertical-align: middle; }

/* 피드 정렬 탭 */
.ftabs { display: flex; gap: 6px; padding: 8px 16px 10px; }
.ftabs a { padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--sub); background: var(--surface); border: 1px solid var(--line); }
.ftabs a.on { background: var(--text); color: var(--surface); }

/* 뉴스피드 카드. 간격 단위는 4·8·12·16 만 쓴다. 한 줄에 한 역할:
   ①작성자·시간 ②분류 칩 ③제목 ④본문(+썸네일) ⑤투표·베플 ⑥반응 */
.feed { display: flex; flex-direction: column; gap: 12px; padding: 0 12px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fcard.pinned { border-color: var(--brand); }
.fc-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--tint); border-bottom: 1px solid var(--line); }
.author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 800; flex-shrink: 0; background: hsl(var(--h) 55% 90%); color: hsl(var(--h) 45% 34%); }
.avatar.fixed { background: var(--brand); color: var(--on-brand); }
.nick { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nick.fixed { color: var(--brand-ink); }
/* 시간: 최근(6시간 이내)은 색, 그보다 오래되면 회색 */
.when { margin-left: auto; flex-shrink: 0; font-size: 12px; color: var(--faint); }
.when.fresh { color: var(--brand-ink); font-weight: 700; }
.when.fresh::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 5px; vertical-align: 1px; }
.cmt-meta .when, .post-meta .when { margin-left: 0; }

/* 판결·후기 칩 */
.chip.verdict { background: var(--ink); color: #fff; }
.chip.verdict.tight { background: var(--hot); }
.chip-update { background: #e3f6ec; color: #11754a; }
@media (prefers-color-scheme: dark) { .chip-update { background: #15382a; color: #7ee0b0; } }

/* 글쓴이 후기 */
.updates { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.update { background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; }
.update-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--brand-ink); }
.update p { font-size: 15.5px; line-height: 1.7; }
.update-form { margin-top: 16px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; }
.update-form summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--sub); }
.update-form .form { margin-top: 12px; }

/* 광고 */
.ad-banner { min-height: 100px; margin: 0 12px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ad-coupang { min-height: 0; padding: 8px; }
.ad-coupang iframe { display: block; border: 0; }
.ad-note { font-size: 11px; color: var(--faint); text-align: center; margin-top: 4px; line-height: 1.4; }

/* 사진 있음 아이콘 */
.pic { display: inline-block; width: 15px; height: 15px; margin-left: 5px; vertical-align: -2px; color: #22b07d; flex-shrink: 0; }
.ticker .king .pic { color: #6fe0b4; }

/* 분류 칩 줄: 높이 22px 로 통일해서 들쭉날쭉하지 않게 */
.fc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 16px 0; }
.fc-chips > * { height: 22px; line-height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: 0; margin: 0 !important; }
.cat { background: hsl(var(--h) 85% 94%); color: hsl(var(--h) 62% 30%); }
.chip { background: var(--bg); color: var(--sub); }
.chip-adult { background: var(--hot-soft); color: var(--hot); }
.fc-chips .bdg-new { background: none; color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand); }
.fc-tag { margin-left: auto !important; background: var(--brand); color: var(--on-brand); }
.post-chips { padding: 0 0 10px; }
@media (prefers-color-scheme: dark) {
  .cat { background: hsl(var(--h) 38% 22%); color: hsl(var(--h) 80% 82%); }
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 70% 55%); margin-right: 8px; }

.fc-title { display: block; padding: 8px 16px 12px; }
.fc-title h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.45; }
.fc-body { display: flex; gap: 12px; align-items: flex-start; margin: 0 16px; padding: 12px; background: var(--bg); border-radius: 12px; }
.fc-body p { flex: 1; min-width: 0; color: var(--sub); font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc-body.sensitive p { text-align: center; font-weight: 700; color: var(--faint); }
.fc-thumb { position: relative; flex: 0 0 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--line); }
.fc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-thumb.blur img { filter: blur(14px); transform: scale(1.2); }
.fc-thumb em { position: absolute; right: 4px; bottom: 4px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.6); border-radius: 6px; padding: 1px 5px; }
.fcard .poll-compact { margin: 12px 16px 0; }
.fcard .pc-best { margin: 8px 16px 0; }
.check { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 500 !important; font-size: 14px !important; color: var(--text) !important; }
.check input { width: auto !important; }

/* 글 상세 이미지 · 글쓰기 이미지 첨부 */
.post-images { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.post-images img { max-width: 100%; height: auto; border-radius: 12px; background: var(--bg); }
.img-field { display: flex; flex-direction: column; gap: 8px; }
.img-label { font-size: 13px; font-weight: 700; color: var(--sub); }
.img-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.img-item { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--bg); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }.fc-act { display: flex; align-items: center; gap: 4px; margin-top: 16px; padding: 4px 8px; background: var(--tint); border-top: 1px solid var(--line); }
.fc-act button, .fc-act a { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--sub); padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.fc-act button:hover, .fc-act a:hover { background: var(--line); }
.fc-act .on { color: var(--brand-ink); }
.fc-act .fire { color: var(--hot); }
.fc-views { margin-left: auto; font-size: 12.5px; color: var(--faint); padding-right: 8px; }
.pc-best { display: block; margin-top: 10px; padding: 9px 12px; background: var(--brand-soft); border-radius: 12px; font-size: 13.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bdg-best { background: var(--text); color: var(--surface); margin-right: 6px; }
.ad-feed { background-color: var(--surface); border-radius: 16px; border: 1px solid var(--line); }
.pager.more { justify-content: center; }
.pager.more a { background: var(--surface); padding: 12px 40px; border-radius: 999px; }

/* 투표: 고르기 전엔 선택지만, 고르면 결과가 펼쳐진다 */
.poll-compact { border: 0; padding: 0; margin-top: 12px; }
.poll-compact h2 { font-size: 14px; color: var(--brand-ink); margin-bottom: 8px; line-height: 1.45; }
.poll-compact .poll-opt { padding: 10px 14px; margin-bottom: 6px; border-radius: 12px; }
.poll-opt { transition: border-color 0.15s; }
.poll-opt:hover { border-color: var(--brand); }
.poll-bar { transition: width 0.5s ease; }
.poll:not(.voted) .poll-bar { width: 0 !important; }
.poll:not(.voted) .poll-pct { visibility: hidden; }
.poll.voted .poll-hint { display: none; }
.poll.voted .poll-opt { cursor: default; }
.poll.voted .poll-opt.mine { border-color: var(--brand); font-weight: 800; }
.poll.voted .poll-opt.mine .poll-label::after { content: " ✓"; color: var(--brand-ink); }
.poll-after { font-size: 13.5px; color: var(--sub); margin: 2px 0 4px; }
.poll-after a { color: var(--brand-ink); font-weight: 700; }
.side-2 .poll-bar { background: var(--hot-soft); }
.side-2 .poll-pct { color: var(--hot); }
.side-3 .poll-bar { background: #fdf1d3; }
.side-4 .poll-bar { background: var(--line); }

/* 댓글의 투표 입장 배지 */
.stance { font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stance.side-2 { background: var(--hot-soft); color: var(--hot); }
.stance.side-3 { background: #fdf1d3; color: #8a6100; }
.stance.side-4 { background: var(--line); color: var(--sub); }

.next-poll { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.next-poll span { font-size: 12px; font-weight: 800; color: var(--ink-accent); }
.next-poll b { font-size: 15px; letter-spacing: -0.015em; }
.empty { padding: 40px 16px; text-align: center; color: var(--sub); }
.ad-slot { overflow: hidden; }
.ad-feed { min-height: 120px; }
.ad-side { min-height: 250px; border-radius: var(--radius); border: 1px solid var(--line); }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: var(--sub); }
.pager a { font-weight: 700; color: var(--text); }

/* post */
.post { padding: 16px; border-bottom: 1px solid var(--line); }
.crumb { font-size: 13px; color: var(--faint); margin-bottom: 8px; }
.crumb a { color: var(--brand-ink); font-weight: 700; }
.post h1 { font-size: 21px; line-height: 1.38; letter-spacing: -0.02em; font-weight: 800; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; margin: 8px 0 16px; }
.post-meta b { color: var(--sub); }
.post-body p { font-size: 16px; line-height: 1.75; margin-bottom: 4px; }
.post-act { display: flex; gap: 8px; margin-top: 20px; }

.article-body h2 { font-size: 18px; margin: 26px 0 10px; letter-spacing: -0.02em; }
.article-body p { margin-bottom: 12px; }
.article-body ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.article-body li { font-size: 16px; line-height: 1.75; }
.article-body a { color: var(--accent); text-decoration: underline; word-break: break-all; }

.summary { background: var(--brand-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.summary h2 { font-size: 12.5px; color: var(--brand-ink); font-weight: 800; letter-spacing: 0.02em; margin-bottom: 4px; }
.summary-head { font-weight: 700; font-size: 15.5px; margin-bottom: 8px; }
.summary li { position: relative; padding-left: 14px; color: var(--sub); font-size: 14px; }
.summary li::before { content: "·"; position: absolute; left: 3px; font-weight: 900; }
.summary-note { margin-top: 8px; font-size: 12px; color: var(--faint); }

.poll { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 20px; }
.poll h2 { font-size: 15.5px; margin-bottom: 10px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; width: 100%; padding: 11px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--text); overflow: hidden; text-align: left; opacity: 1 !important; }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--brand-soft); }
.poll-label, .poll-pct { position: relative; font-weight: 600; }
.poll-pct { color: var(--brand-ink); }
.poll-total { font-size: 12.5px; color: var(--faint); }

.comments { padding: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comments h2 { font-size: 16px; margin-bottom: 12px; }
.cmt-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.cmt-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
.cmt { padding: 14px 0; border-top: 1px solid var(--line); }
.cmt.reply { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.cmt-meta { display: flex; gap: 8px; font-size: 12.5px; color: var(--faint); margin-bottom: 3px; }
.cmt-meta b { color: var(--sub); }
.cmt-act { display: flex; gap: 14px; margin-top: 6px; font-size: 12.5px; color: var(--faint); }

.simple { padding: 28px 16px; }
.simple h1 { font-size: 20px; margin-bottom: 10px; }
.simple a { color: var(--accent); }

/* forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--sub); }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--bg); color: var(--text); font: inherit; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.form textarea { resize: vertical; line-height: 1.6; }
.form-row { display: flex; gap: 8px; }
.form-row input { flex: 1; min-width: 0; }
.form-row .btn { flex-shrink: 0; }
.form-hint { font-size: 12.5px; color: var(--faint); }
.form-hint a { color: var(--accent); text-decoration: underline; }
.form-error { background: var(--hot-soft); color: var(--hot); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.btn-block { width: 100%; padding: 13px; font-size: 16px; }
.poll-form { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.poll-form summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--sub); }
.poll-form input { margin-top: 8px; }
.search-form { flex-direction: row; padding: 0 16px 14px; }
.search-form input { flex: 1; min-width: 0; }
.cmt-form { align-items: stretch; margin-bottom: 8px; }
.reply-to { font-size: 13px; color: var(--brand-ink); font-weight: 700; }
.reply-to button, .cmt-act button { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.reply-to button { text-decoration: underline; }
.cmt-act button.on, .post-act .btn.on { color: var(--brand-ink); font-weight: 700; }
.post-act .btn.on { border-color: var(--brand); background: var(--brand-soft); }
.post-act { flex-wrap: wrap; }
.poll-opt { cursor: pointer; }
.poll-opt.mine { border-color: var(--brand); }
.poll-result { margin-top: 6px; font-size: 13.5px; color: var(--sub); }

/* 안내 문서 */
.prose h2 { font-size: 16px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--sub); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 20px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose details { border-top: 1px solid var(--line); padding: 12px 0; }
.prose summary { font-weight: 700; cursor: pointer; color: var(--text); }
.prose details p { margin-top: 8px; }

/* admin */
.adm-row { border-top: 1px solid var(--line); padding: 12px 0; list-style: none; }
.adm-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.adm-act .btn { padding: 5px 12px; font-size: 13px; }
.foot { padding: 22px 16px 28px; font-size: 12.5px; color: var(--faint); text-align: center; line-height: 1.9; }

/* bottom tab bar (앱 형태) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--faint); }
.tabbar a.on { color: var(--text); font-weight: 800; }
.tabbar .t-home svg { color: var(--brand); }
.tabbar .t-hot svg { color: #ff5a4e; }
.tabbar .t-bell svg { color: #f5a623; }
.tabbar .t-me svg { color: #2f9bff; }
.tabbar a:not(.on):not(.tab-write) svg { opacity: 0.78; }
.tabbar .tab-write svg { background: var(--brand); color: var(--on-brand); border-radius: 12px; padding: 6px; width: 36px; height: 36px; margin-top: -4px; }
.tabbar .tab-write { color: var(--brand-ink); }

/* tablet */
@media (min-width: 720px) {
  .wrap { padding: 16px; }
  .feed { padding: 0; }
  .ad-banner { margin-left: 0; margin-right: 0; }
  .post, .comments, .simple, .hotbox { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .post { padding: 24px; }
  .post h1 { font-size: 24px; }
}

/* PC: 3단 */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .ticker ol { padding-left: 0; padding-right: 0; }
  .ftabs { padding-left: 0; }
  .ticker li { flex-basis: 240px; }
  .top-write, .top-login { display: inline-block; }
  .search { max-width: 420px; margin: 0 auto 0 12px; }
  .wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 20px; align-items: start; padding: 20px 16px; }
  .side-l, .side-r { display: block; position: sticky; top: 72px; }
  .side-l h2, .side-r h2 { font-size: 13px; color: var(--faint); font-weight: 700; padding: 4px 10px 8px; }
  .side-l li a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 10px; font-weight: 600; color: var(--sub); }
  .side-l li a:hover { background: var(--surface); }
  .side-l li a.on { background: var(--surface); color: var(--brand-ink); }
  .side-l em { font-style: normal; font-size: 12px; color: var(--faint); font-weight: 500; }
  .side-note { padding: 14px 10px; font-size: 12.5px; color: var(--faint); }
  .side-r .card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; margin-bottom: 16px; }
  .rank li { display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; font-size: 14px; }
  .rank b { color: var(--brand-ink); width: 14px; flex-shrink: 0; }
  .rank a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rank a:hover, .post-card a:hover h3 { text-decoration: underline; }
  .rank em { font-style: normal; font-size: 12px; color: var(--faint); }
}
