/* 문조털래유 디자인 시스템. 목업(문조털래유.dc.html)의 색·폰트·레이아웃을 클래스로 정리. */

:root {
  --ink: #2A2118;
  --cream: #FBF5E3;
  --paper: #FFFBF0;
  --muted: #9A8B6C;
  --line: rgba(31, 26, 18, 0.1);
  --purple: #7B4FD4;
  --purple-deep: #5F36B3;
  --gold: #F3CF69;
  --gold-deep: #D9A520;
  --red: #C2482E;
  --serif: 'Gowun Batang', serif;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(217, 165, 32, 0.05) 0, transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(123, 79, 212, 0.05) 0, transparent 36%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(31, 26, 18, 0.012) 25px 26px);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
input, textarea, button, select { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #E6D9A8; border-radius: 999px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: #CCB977; }

@keyframes mjtl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mjtl-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes mjtl-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mjtl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── 레이아웃 ─────────────────────────────────────────── */
.wrap { max-width: 1280px; margin: 0 auto; }
.main { max-width: 1280px; margin: 0 auto; padding: 22px; }
.cols { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.col-main { flex: 3 1 560px; min-width: 300px; display: flex; flex-direction: column; gap: 26px; }
.col-side { flex: 1 1 280px; min-width: 260px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }

/* ── 헤더 ─────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 245, 227, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 11px 22px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { width: 69px; height: 69px; border-radius: 16px; object-fit: cover; box-shadow: 0 4px 10px rgba(31, 26, 18, 0.18); flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name .accent { color: var(--purple); }
.brand-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); margin-top: 3px; text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 200px; overflow-x: auto; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: #4A3E2C; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .12s, color .12s;
}
.nav-pill:hover { background: rgba(123, 79, 212, 0.08); }
.nav-pill.is-active { background: #F3EDFF; color: #442687; border-color: #E4D6FC; font-weight: 700; }

.hdr-actions { display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 7px; background: var(--paper);
  border: 1px solid rgba(31, 26, 18, 0.16); border-radius: 999px; padding: 7px 13px; min-width: 150px;
}
.search input { border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 17px;
  border-radius: 999px; border: 1px solid var(--purple); background: var(--purple);
  color: var(--paper); font-size: 13.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 10px rgba(68, 38, 135, 0.25); white-space: nowrap; transition: background .12s;
}
.btn:hover { background: var(--purple-deep); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: #F3EDFF; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 12.5px; }

/* 프로필 칩 */
.profile-chip {
  display: flex; align-items: center; gap: 9px; background: var(--paper);
  border: 1px solid rgba(31, 26, 18, 0.14); border-radius: 999px; padding: 4px 11px 4px 4px;
  cursor: pointer; box-shadow: 0 1px 2px rgba(31, 26, 18, 0.05);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.avatar span { font-family: var(--serif); font-weight: 700; font-size: 15px; }
.profile-name { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.profile-meta { font-family: var(--mono); font-size: 10px; color: #9B6F0D; font-weight: 700; }
.verified { color: var(--gold-deep); }

/* 프로필 드롭다운 */
.menu {
  position: absolute; right: 22px; top: 64px; z-index: 49; width: 220px;
  background: var(--paper); border: 1px solid rgba(31, 26, 18, 0.12);
  border-radius: 13px; box-shadow: 0 16px 36px rgba(31, 26, 18, 0.22);
  overflow: hidden; animation: mjtl-pop .15s ease both;
}
.menu-head { padding: 13px 15px; border-bottom: 1px solid rgba(31, 26, 18, 0.08); background: var(--cream); }
.menu-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.menu-item:hover { background: #F3EDFF; }
.menu-item.danger { color: var(--red); font-weight: 700; }
.menu-item.danger:hover { background: #F7D9CF; }
.menu-form { margin: 0; padding: 6px; }
.menu-form button { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }

/* ── 실시간 떡밥 티커 ──────────────────────────────────── */
.ticker { background: var(--ink); overflow: hidden; border-top: 1px solid rgba(217, 165, 32, 0.3); }
.ticker-row { display: flex; align-items: center; max-width: 1280px; margin: 0 auto; }
.ticker-tag {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px; background: var(--red);
  padding: 6px 14px; font-size: 11.5px; font-weight: 800; color: var(--paper); z-index: 1;
}
.ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); animation: mjtl-pulse 1.1s infinite; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-marquee {
  display: inline-flex; white-space: nowrap; animation: mjtl-marquee 38s linear infinite;
  font-family: var(--mono); font-size: 12px; color: #E6D9A8; padding: 6px 0;
}
.ticker-marquee span { padding: 0 28px; }
.ticker-marquee b { color: var(--gold); }

/* ── 섹션/카드 공통 ───────────────────────────────────── */
.section-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.section-title { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 6px 0 0; display: flex; align-items: center; gap: 9px; }
.section-sub { font-size: 13px; color: #6b5c3e; margin: 8px 0 0; }
.section-head { margin-bottom: 16px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 2px 8px rgba(31, 26, 18, 0.04);
}
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.panel-title { font-family: var(--serif); font-weight: 700; font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 7px; }

/* 카테고리 배지 */
.cat {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 9px;
  font-size: 11.5px; font-weight: 800; line-height: 1; border-radius: 999px; white-space: nowrap;
}

/* ── 게시글 카드 ──────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card { display: block; padding: 16px 18px; transition: transform .1s, box-shadow .1s; animation: mjtl-rise .3s ease both; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 26, 18, 0.08); }
.post-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.post-author { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--purple-deep); }
.post-dot { color: #C9BC98; }
.post-time { font-size: 11.5px; color: var(--muted); }
.badge-hot { background: #F7D9CF; color: var(--red); font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.badge-shrine { background: linear-gradient(135deg, #F3CF69, #D9A520); color: #4a3c10; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.badge-prophecy { background: #E4D6FC; color: #442687; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.admin-badge { display: inline-flex; align-items: center; background: linear-gradient(135deg, #F3CF69, #D9A520); color: #4a3c10; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.badge-blind { background: #555; color: #fff; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }

/* 관리자 전용 버튼바 (글 상세) */
.admin-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--gold-deep); border-radius: 12px; background: #FFFDF5; }
.admin-toolbar-label { font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--gold-deep); margin-right: 4px; }
.admin-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.admin-btn:hover { background: #F3EDFF; }
.admin-btn.danger { border-color: var(--red); color: var(--red); }
.admin-btn.danger:hover { background: #F7D9CF; }
.admin-btn.gold { border-color: var(--gold-deep); color: #4a3c10; background: linear-gradient(135deg, #F3CF69, #D9A520); }
/* button_to 폼 마진 제거(버튼들이 한 줄에 붙도록) */
.admin-toolbar form { margin: 0; display: inline; }

/* 영상생중계 — 제출 폼 / 코멘트 / 플레이어 타이틀 */
.player-title { font-weight: 800; font-size: 15px; color: var(--ink); margin: 0 0 18px; }
.video-submit { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.video-submit-head { font-weight: 800; font-size: 14px; }
.video-submit-sub { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 6px; }
.video-submit-input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-family: inherit; resize: vertical; }
.video-submit-input:focus { outline: none; border-color: var(--purple); }
.video-submit .btn { align-self: flex-start; }
.video-submit-cta { padding: 14px 16px; color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.link-btn { background: none; border: none; color: var(--purple-deep); font-weight: 700; cursor: pointer; padding: 0; font-size: inherit; }
.video-comment { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.video-submitter { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.video-card.pending { border: 1px dashed var(--gold-deep); cursor: default; }
.video-card.pending .video-dur { background: var(--gold-deep); }

/* 게시글 카드의 유튜브 첨부 썸네일 */
.post-yt-thumb { position: relative; margin-top: 10px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.post-yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-yt-play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%; font-size: 18px; padding-left: 3px; }

/* 관리자 알림말 */
.modal-x { margin-left: auto; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--muted); }

/* AltsCodex 로그인 안내 모달 */
.altscodex-intro-text { font-size: 14px; line-height: 1.8; color: var(--ink); margin: 0 0 6px; }
.altscodex-intro-text strong { color: var(--purple-deep); }
.notice-list { display: flex; flex-direction: column; gap: 8px; }
.notice-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font: inherit; transition: background .12s, border-color .12s; }
.notice-item:hover { background: #FFFDF5; border-color: var(--gold-deep); }
.notice-pin { font-size: 15px; }
.notice-title { flex: 1; font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.notice-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; border: 1px dashed var(--line); border-radius: 12px; }
.notice-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.notice-content { font-size: 14.5px; line-height: 1.7; color: var(--ink); }

/* 전체채팅 확장/축소(전체화면) */
.chat-bar { display: flex; align-items: center; margin-bottom: 8px; }
.chat-fs-title { display: none; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.chat-expand { margin-left: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.chat-expand:hover { background: #F3EDFF; color: var(--ink); }
.chat-fs-lock { overflow: hidden; }
/* 전송 옆 축소 버튼: 평상시 숨김, 전체화면에서만 노출 */
.chat-collapse-inline { display: none; }
.chat-fs .chat-collapse-inline { display: inline-flex; align-items: center; white-space: nowrap; }
/* 비로그인 읽기 전용 안내 줄 */
.chat-readonly { align-items: center; gap: 8px; }
.chat-readonly-note { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.4; }
/* 전체화면 모드: 같은 DOM을 고정 오버레이로 전환(WS/메시지 유지) */
.chat-fs { position: fixed; inset: 0; z-index: 9999; background: var(--paper); display: flex; flex-direction: column; padding: 18px 20px; box-sizing: border-box; }
.chat-fs .chat-fs-title { display: block; }
.chat-fs .chat-expand { display: none; }
.chat-fs .chat { max-height: none; flex: 1; margin-bottom: 12px; }
.chat-fs .chat-input-row { max-width: 880px; width: 100%; margin: 0 auto; }
.chat-fs .chat, .chat-fs .chat-bar { max-width: 880px; width: 100%; margin-left: auto; margin-right: auto; }

.post-title { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.4; margin: 0 0 6px; }
.post-excerpt { font-size: 13.5px; color: #564a36; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 14px; margin-top: 11px; font-size: 12px; color: var(--muted); }
.post-meta .m { display: inline-flex; align-items: center; gap: 4px; }
.post-meta .m strong { color: #6b5c3e; }

/* 사진 그리드 */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 11px; }
.photo-tile { position: relative; aspect-ratio: 4/3; border-radius: 11px; overflow: hidden; border: 1px solid rgba(31, 26, 18, 0.1); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.photo-label { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.35); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 560px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* 링크 첨부 */
.link-att { display: flex; gap: 10px; align-items: center; margin-top: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--cream); }
.link-att .ico { font-size: 18px; }
.link-att .t { font-size: 13px; font-weight: 700; }
.link-att .d { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ── 영상 ─────────────────────────────────────────────── */
.player { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #1a1610; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.video-card { cursor: pointer; overflow: hidden; }
.video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 26, 18, 0.08); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #2A2118, #4a3f2c); display: flex; align-items: center; justify-content: center; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-dur { position: absolute; right: 7px; bottom: 7px; background: rgba(0, 0, 0, 0.78); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.video-body { padding: 11px 13px 14px; }
.video-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; margin: 0 0 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.video-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--purple-deep); background: #F3EDFF; padding: 1px 7px; border-radius: 999px; }

/* ── 사이드바: 랭킹 / 사전 / 채팅 ─────────────────────── */
.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-num { font-family: var(--serif); font-weight: 700; font-size: 16px; width: 22px; text-align: center; color: var(--muted); }
.rank-num.top { color: var(--purple); }
.rank-title { font-size: 12.5px; font-weight: 600; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-heat { font-family: var(--mono); font-size: 11px; color: var(--red); font-weight: 700; }

.glossary-item { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.glossary-item:last-child { border-bottom: 0; }
.glossary-term { font-weight: 800; font-size: 13px; color: var(--purple-deep); }
.glossary-def { font-size: 12px; color: #6b5c3e; line-height: 1.5; margin-top: 3px; }

.chat { display: flex; flex-direction: column; gap: 9px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.chat-msg { font-size: 12.5px; line-height: 1.4; }
.chat-user { font-family: var(--mono); font-size: 11px; font-weight: 700; }
.chat-text { color: #4a4030; }
.chat-input-row { display: flex; gap: 7px; margin-top: 11px; }
.chat-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 12.5px; outline: 0; }
.chat-note { font-size: 11px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* ── 성지글 ───────────────────────────────────────────── */
.shrine-list { display: flex; flex-direction: column; gap: 14px; }
.shrine { padding: 18px 20px; }
.shrine.hot { border-color: rgba(217, 165, 32, 0.5); background: linear-gradient(180deg, #FFFDF5, var(--paper)); }
.shrine-eyebrow { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--gold-deep); }
.shrine-title { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.4; margin: 8px 0; }
.shrine-note { font-size: 13px; color: #564a36; font-style: italic; }
.shrine-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.shrine-tag { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--cream); padding: 4px 10px; border-radius: 8px; }
.shrine-stat { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; }
.shrine-stat.up { color: var(--red); }
.shrine-stat .lbl { font-size: 11px; font-weight: 600; color: var(--muted); }

/* ── 명예의전당 ───────────────────────────────────────── */
.hall-stage { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 30px 20px; background: linear-gradient(180deg, #2A2118, #3a3020); border-radius: 18px; flex-wrap: wrap; }
.hall-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hall-medal { font-size: 18px; }
.hall-avatar { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
.hall-avatar span { font-family: var(--serif); font-weight: 700; font-size: 26px; color: #fff; }
.hall-avatar.rank1 { width: 84px; height: 84px; }
.hall-avatar.rank1 span { font-size: 32px; }
.hall-name { color: var(--paper); font-weight: 700; font-size: 14px; }
.hall-meta { color: #C9BC98; font-size: 11.5px; }
.hall-pts { color: var(--gold); font-family: var(--mono); font-weight: 700; font-size: 13px; }
.hall-base { background: linear-gradient(180deg, #5a4a2e, #4a3c24); border-radius: 10px 10px 0 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--gold); width: 96px; }
.hall-base.b1 { height: 90px; } .hall-base.b2 { height: 64px; } .hall-base.b3 { height: 48px; }
.hall-rest { margin-top: 18px; }
.hall-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hall-row:last-child { border-bottom: 0; }

/* ── 댓글 ─────────────────────────────────────────────── */
.comment { padding: 13px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.comment-user { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--purple-deep); }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-body { font-size: 13.5px; line-height: 1.6; color: #3a3225; }
.replies { margin: 10px 0 0 18px; padding-left: 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.reply { padding: 2px 0; }

/* ── 글 상세 ──────────────────────────────────────────── */
.post-detail { padding: 26px 30px; }
.post-detail h1 { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.3; margin: 14px 0 16px; }
.post-detail .body { font-size: 15px; line-height: 1.8; color: #3a3225; white-space: pre-wrap; }
.detail-author { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.like-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--red); background: #FFF; color: var(--red); font-weight: 800; font-size: 14px; cursor: pointer; }
.like-btn:hover { background: #F7D9CF; }
.enshrine-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--gold-deep); background: linear-gradient(135deg, #F3CF69, #D9A520); color: #4a3c10; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 4px 10px rgba(217,165,32,0.3); }
.enshrine-btn:hover { filter: brightness(1.05); }
/* button_to가 감싸는 form의 기본 마진 제거 */
.like-btn form, form.button_to { margin: 0; display: inline; }

/* ── 폼 / 모달 ────────────────────────────────────────── */
dialog.modal { width: 100%; max-width: 480px; padding: 0; border: 0; border-radius: 18px; background: var(--paper); box-shadow: 0 24px 60px rgba(31, 26, 18, 0.3); overflow: hidden; color: var(--ink); }
dialog.modal::backdrop { background: rgba(31, 26, 18, 0.45); }
dialog.modal[open] { animation: mjtl-pop .18s ease both; }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: #6b5c3e; }
.field input, .field textarea, .field select { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px; outline: 0; background: var(--cream); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--purple); }

/* Alt 계정 선택 카드 */
.alt-card { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--cream); transition: border-color .12s; width: 100%; text-align: left; }
.alt-card:hover { border-color: var(--purple); }
.alt-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.alt-handle { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.alt-stage { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--purple-deep); }

/* ── 플래시/토스트 ────────────────────────────────────── */
.flash { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80; padding: 12px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700; box-shadow: 0 12px 30px rgba(31, 26, 18, 0.25); animation: mjtl-pop .2s ease both; }
.flash.notice { background: var(--ink); color: var(--cream); }
.flash.alert { background: var(--red); color: #fff; }

/* ── 푸터 ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 26px 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.footer-inner .accent { color: var(--purple); }

/* 카테고리 필터 탭 */
.cat-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 700; color: #6b5c3e; cursor: pointer; }
.cat-tab.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.hidden { display: none !important; }
