/* ============================================================
   히든착 디자인 시스템 v3
   ① 컴맹용: 사이트의 옷이에요. 색, 글자, 버튼 모양이 다 여기 있어요.
   ② 개발자용: 색은 반드시 :root 변수 사용. 새 컴포넌트는 맨 아래에.
   ============================================================ */
:root {
  --bg: #0b0e14;
  --bg-soft: #10141d;
  --card: #161b26;
  --card-2: #1b2130;
  --line: #232a38;
  --line-soft: #1c2230;
  --text: #eef1f7;
  --text-dim: #aab3c5;
  --muted: #6f7a8f;
  --brand: #6d5cff;
  --brand-2: #8b7bff;
  --brand-dim: rgba(109,92,255,.14);
  --up: #26d07c;
  --up-dim: rgba(38,208,124,.12);
  --down: #ff5875;
  --down-dim: rgba(255,88,117,.12);
  --gold: #ffcf5c;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --shadow: 0 6px 24px rgba(0,0,0,.28);
  --shadow-soft: 0 2px 10px rgba(0,0,0,.18);
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(1200px 600px at 50% -280px, rgba(109,92,255,.10), transparent 60%), var(--bg);
  color: var(--text); line-height: 1.6; letter-spacing: -0.01em; min-height: 100vh;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}
a { color: var(--brand-2); text-decoration: none; }
main { max-width: 620px; margin: 0 auto; padding: 18px 16px 96px; }
h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }

.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between;
  align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  background: rgba(11,14,20,.82); backdrop-filter: saturate(140%) blur(12px); }
.top .logo { font-size: 22px; font-weight: 900; letter-spacing: -0.04em;
  background: linear-gradient(100deg, #fff 20%, var(--brand-2)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.top nav { display: flex; gap: 6px; align-items: center; }
.nav-link { color: var(--text-dim); font-weight: 600; font-size: 14px; padding: 7px 10px;
  border-radius: 999px; transition: background .15s, color .15s; }
.nav-link:hover { color: var(--text); background: var(--card); }
.wallet { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 13px;
  white-space: nowrap; color: var(--text); }
.wallet .w-p { color: var(--up); }
.wallet .w-r { color: var(--brand-2); }
.wallet .w-sep { width: 1px; height: 12px; background: var(--line); }
.me-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px;
  color: var(--text); padding: 6px 8px; border-radius: 999px; }
.me-chip:hover { background: var(--card); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin-top: 14px; box-shadow: var(--shadow-soft); }
.center { text-align: center; }

label { display: block; margin: 16px 0 7px; font-size: 13.5px; color: var(--text-dim); font-weight: 700; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local],
textarea, select { width: 100%; padding: 14px 15px; border-radius: var(--r-md); border: 1.5px solid var(--line);
  background: var(--bg-soft); color: var(--text); font-size: 16px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-dim); }
textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
select { width: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800;
  border: 0; border-radius: var(--r-md); padding: 12px 18px; cursor: pointer; font-size: 15px;
  font-family: inherit; transition: transform .08s, filter .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(109,92,255,.32); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn.big { display: flex; width: 100%; padding: 16px; font-size: 16px; margin-top: 20px; }
.btn.small { padding: 9px 14px; font-size: 13.5px; box-shadow: none; border-radius: var(--r-sm); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--text-dim); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); color: var(--text); }
.btn.up { background: linear-gradient(180deg, #2ee08a, var(--up)); box-shadow: 0 4px 14px rgba(38,208,124,.3); color: #04160c; }
.btn.down { background: linear-gradient(180deg, #ff6f89, var(--down)); box-shadow: 0 4px 14px rgba(255,88,117,.3); }
.linklike { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px;
  padding: 0; font-family: inherit; font-weight: 600; }
.linklike:hover { color: var(--text-dim); }
.inline { display: inline; }

.flash { background: var(--brand-dim); border: 1px solid rgba(109,92,255,.35); color: #d6cfff;
  padding: 13px 15px; border-radius: var(--r-md); margin-top: 14px; font-weight: 700; }
.error { background: var(--down-dim); color: #ffb0be; border: 1px solid rgba(255,88,117,.4);
  padding: 13px 15px; border-radius: var(--r-md); margin: 12px 0; font-weight: 600; }
.muted { color: var(--muted); }
.dim { color: var(--text-dim); }
.small { font-size: 13px; }
.up-t { color: var(--up); font-weight: 800; }
.down-t { color: var(--down); font-weight: 800; }
.plus { color: var(--up); font-weight: 800; }
.minus { color: var(--down); font-weight: 800; }

.hero { text-align: center; padding: 46px 10px 22px; }
.hero .badge { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--brand-2);
  background: var(--brand-dim); border: 1px solid rgba(109,92,255,.3); padding: 6px 13px;
  border-radius: 999px; margin-bottom: 18px; }
.hero h1 { line-height: 1.28; margin-bottom: 12px; }
.hero .grad { background: linear-gradient(100deg, var(--brand-2), #4ad6ff); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-dim); font-size: 15px; }
.hero .sub { margin-top: 14px; }
.attend-btn { margin-top: 16px; }

.seg { display: flex; gap: 4px; margin-top: 18px; padding: 4px; background: var(--bg-soft);
  border: 1px solid var(--line-soft); border-radius: 999px; }
.seg a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 999px; color: var(--muted);
  font-weight: 700; font-size: 14px; transition: all .18s; }
.seg a.active { color: #fff; background: linear-gradient(180deg, var(--brand-2), var(--brand));
  box-shadow: 0 3px 10px rgba(109,92,255,.35); }
.seg a:not(.active):hover { color: var(--text-dim); }
.section-title { margin-top: 26px; margin-bottom: 2px; font-size: 17px; font-weight: 800; }

.market-card { display: block; color: var(--text); position: relative;
  transition: transform .14s, border-color .16s, box-shadow .16s; }
.market-card:hover { border-color: rgba(109,92,255,.5); transform: translateY(-2px); box-shadow: var(--shadow); }
.market-title { font-weight: 700; margin-bottom: 14px; font-size: 16.5px; line-height: 1.4; }
.prob-bar { height: 12px; background: var(--down-dim); border-radius: 999px; overflow: hidden; }
.prob-bar.big { height: 22px; margin: 18px 0 12px; }
.prob-fill { height: 100%; background: linear-gradient(90deg, #2ee08a, var(--up));
  transition: width .6s cubic-bezier(.4,0,.2,1); border-radius: 999px; }
.market-meta { display: flex; gap: 8px; margin-top: 12px; align-items: center; font-size: 13.5px;
  flex-wrap: wrap; color: var(--muted); }
.pct-yes { color: var(--up); font-weight: 800; }
.pct-no { color: var(--down); font-weight: 800; }
.pct-yes .n, .pct-no .n { font-size: 15px; }
.chip-time { margin-left: auto; background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--text-dim); }

.side-pick { display: flex; gap: 10px; margin: 6px 0; }
.side-btn { flex: 1; text-align: center; padding: 16px 8px; border: 2px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; font-weight: 800; font-size: 15.5px; color: var(--text-dim);
  background: var(--bg-soft); transition: all .16s; }
.side-btn input { display: none; }
.side-btn.yes:has(input:checked) { border-color: var(--up); color: var(--up); background: var(--up-dim); box-shadow: 0 4px 14px var(--up-dim); }
.side-btn.no:has(input:checked) { border-color: var(--down); color: var(--down); background: var(--down-dim); box-shadow: 0 4px 14px var(--down-dim); }
.bet-preview { background: linear-gradient(180deg, var(--brand-dim), transparent); border: 1.5px solid rgba(109,92,255,.3);
  border-radius: var(--r-md); padding: 14px 16px; margin-top: 16px; font-size: 15px; text-align: center; }
.bet-preview b { font-size: 18px; }

.my-bet-side { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-top: 12px; background: var(--bg-soft); }
.data-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 14.5px; align-items: center; }
.data-row:last-of-type { border-bottom: 0; }
.data-row .k { color: var(--text-dim); }
.sell-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.sell-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.sell-row input[type=number] { width: 120px; }

.result-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px;
  border-radius: 999px; padding: 7px 14px; margin: 10px 0 4px; }
.result-badge.win-yes { color: var(--up); background: var(--up-dim); }
.result-badge.win-no { color: var(--down); background: var(--down-dim); }
.result-badge.void { color: var(--text-dim); background: var(--bg-soft); border: 1px solid var(--line); }
.result-badge.wait { color: var(--gold); background: rgba(255,207,92,.1); }
.market-card.done { opacity: .96; }

.write-row { margin-top: 16px; display: flex; justify-content: flex-end; }
.post-row { display: block; color: var(--text); padding: 17px 18px; }
.post-row:hover { border-color: rgba(109,92,255,.4); background: var(--card-2); }
.post-title { font-weight: 700; margin-bottom: 5px; font-size: 15.5px; }
.cmt-count { color: var(--brand-2); font-size: 13px; margin-left: 5px; font-weight: 700; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

.post-content { margin: 18px 0; line-height: 1.85; word-break: break-word; font-size: 15.5px; }
.post-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 6px; }
.report-box summary { list-style: none; cursor: pointer; }
.report-box form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.report-box input[type=text] { flex: 1; min-width: 150px; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.comment:last-of-type { border-bottom: 0; }
.comment.reply { margin-left: 20px; padding-left: 14px; border-left: 2px solid var(--line); }
.comment-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.comment-nick { font-weight: 700; font-size: 14px; }
.comment-form { display: flex; gap: 10px; margin-top: 16px; align-items: stretch; }
.comment-form textarea { flex: 1; min-height: 54px; }
.comment-form .btn { align-self: stretch; white-space: nowrap; }

.guide-ex { background: var(--bg-soft); border-left: 3px solid var(--brand); padding: 14px 16px;
  border-radius: var(--r-sm); margin: 14px 0; line-height: 1.95; }
.guide-list { padding: 0; list-style: none; }
.guide-list li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.guide-list li:last-child { border-bottom: 0; }

.exchange-visual { display: flex; gap: 16px; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; background: linear-gradient(180deg, var(--brand-dim), transparent);
  border: 1px solid rgba(109,92,255,.3); border-radius: var(--r-md); padding: 22px; margin: 16px 0; }
.exchange-visual .arrow { color: var(--brand-2); font-size: 22px; }

.stat-list { list-style: none; padding: 0; }
.stat-list li { padding: 13px 0; border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stat-list li:last-child { border-bottom: 0; }
.recovery-code { font-family: "SF Mono", Consolas, monospace; font-size: 23px; letter-spacing: 3px;
  text-align: center; background: var(--bg-soft); border: 2px dashed var(--brand); border-radius: var(--r-md);
  padding: 18px; margin: 16px 0; user-select: all; word-break: break-all; color: var(--brand-2); }
.lv { display: inline-block; font-size: 11px; font-weight: 800; color: var(--brand-2);
  background: var(--brand-dim); border: 1px solid rgba(109,92,255,.3); border-radius: 7px;
  padding: 1px 7px; vertical-align: 1px; }
.rank-row { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.rank-row:last-of-type { border-bottom: 0; }
.rank-no { min-width: 40px; font-weight: 800; font-size: 15px; text-align: center; }
.rank-no.top { font-size: 20px; }
.rank-name { flex: 1; font-weight: 600; }
.warn-chip { display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--gold);
  background: rgba(255,207,92,.1); border: 1px solid rgba(255,207,92,.35); border-radius: 7px; padding: 1px 8px; }
.level-card { background: linear-gradient(135deg, var(--brand-dim), transparent); border-color: rgba(109,92,255,.3); }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-box { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 12px 14px; }
.stat-box .n { font-size: 20px; font-weight: 800; display: block; }
.stat-box .l { font-size: 12.5px; color: var(--muted); }
.admin-user-row.suspended { opacity: .55; }
code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
  font-size: 12px; font-family: "SF Mono", Consolas, monospace; }
.word-chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; margin: 4px 3px; background: var(--bg-soft); }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form input { flex: 1; }
.suspect-row { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.cf-turnstile { margin-top: 16px; }

.empty { text-align: center; padding: 40px 20px; }
.empty .emoji { font-size: 40px; display: block; margin-bottom: 12px; }

.tabbar { display: none; }
@media (max-width: 620px) {
  main { padding-bottom: 82px; }
  .top nav .hide-m { display: none; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: rgba(11,14,20,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; text-align: center; color: var(--muted); font-size: 11px; font-weight: 700;
    display: flex; flex-direction: column; gap: 3px; padding: 4px 0; }
  .tabbar a .ic { font-size: 20px; }
  .tabbar a.active { color: var(--brand-2); }
  .card { padding: 17px; }
  main { padding-left: 14px; padding-right: 14px; }
}
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 16px; line-height: 1.9; }
.foot .line1 { font-weight: 700; color: var(--text-dim); }

/* ---------- 채널 ---------- */
.quick-boards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.qb { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--text-dim); font-size: 12.5px; font-weight: 700; transition: all .14s; }
.qb:hover { border-color: rgba(109,92,255,.4); color: var(--text); transform: translateY(-1px); }
.qb .qb-ic { font-size: 22px; }
.qb.hot { border-color: rgba(109,92,255,.4); color: var(--brand-2); }
.channel-row { display: flex; align-items: center; gap: 14px; color: var(--text); }
.channel-row:hover { border-color: rgba(109,92,255,.4); transform: translateY(-1px); }
.ch-ico { font-size: 26px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 12px; flex-shrink: 0; }
.ch-ico.big { font-size: 34px; width: 60px; height: 60px; }
.ch-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-info b { font-size: 15.5px; }
.ch-info .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-head { background: linear-gradient(135deg, var(--brand-dim), transparent); }
.pin-tag { display: inline-block; font-size: 11px; font-weight: 800; color: var(--gold);
  background: rgba(255,207,92,.12); border-radius: 6px; padding: 1px 7px; vertical-align: 2px; }


/* ---------- 관리자 메뉴 그리드 ---------- */
.admin-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.admin-menu a { padding: 13px 14px; background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); color: var(--text-dim); font-weight: 700; font-size: 14px; transition: all .14s; }
.admin-menu a:hover { border-color: rgba(109,92,255,.4); color: var(--text); background: var(--card-2); }


/* ---------- 내 예측 ---------- */
.mystat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mystat { text-align: center; background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 14px 6px; }
.mystat .n { display: block; font-size: 22px; font-weight: 800; }
.mystat .l { font-size: 12px; color: var(--muted); }
.pred-side { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 12px 14px; margin-top: 10px; background: var(--bg-soft); }
.pred-side-head { font-size: 14px; margin-bottom: 4px; }
.pred-outcome { margin-top: 12px; }


/* ---------- 알림/검색/차트/카운트다운 ---------- */
.bell { position: relative; font-size: 18px; padding: 4px 6px; }
.bell-dot { position: absolute; top: -2px; right: -2px; background: var(--down); color: #fff;
  font-size: 10px; font-weight: 800; border-radius: 999px; padding: 0 5px; min-width: 16px; text-align: center; }
.notif-row { display: flex; gap: 12px; align-items: center; color: var(--text); }
.notif-row.unread { border-color: rgba(109,92,255,.4); background: var(--brand-dim); }
.notif-ic { font-size: 22px; }
.notif-body { display: flex; flex-direction: column; gap: 2px; }
.chart-wrap { margin: 10px 0 4px; }
.countdown { color: var(--gold); font-weight: 700; }
.comment-actions { display: flex; gap: 12px; margin-top: 4px; }
.reply-form { margin-top: 10px; }


/* ---------- 성장/뉴스/미션/초대 ---------- */
.mission-card { background: linear-gradient(135deg, var(--brand-dim), transparent); border-color: rgba(109,92,255,.3); }
.mission-head { display: flex; justify-content: space-between; align-items: center; }
.mission-items { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mi { flex: 1; text-align: center; padding: 9px 4px; border-radius: var(--r-sm); background: var(--bg-soft);
  border: 1px solid var(--line-soft); font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mi.ok { color: var(--up); border-color: rgba(38,208,124,.3); background: var(--up-dim); }
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; -webkit-overflow-scrolling: touch; }
.cat-pill { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--text-dim); font-weight: 700; font-size: 14px; background: var(--card); }
.cat-pill.active { border-color: var(--brand); color: #fff; background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.news-row { display: block; color: var(--text); }
.news-row:hover { border-color: rgba(109,92,255,.4); }
.news-title { font-weight: 700; font-size: 15px; line-height: 1.45; margin-bottom: 5px; }
.invite-box { display: flex; gap: 8px; margin-bottom: 12px; }
.invite-box input { flex: 1; font-size: 13px; }

/* ===== 복원 보충(전사 추출) ===== */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge-hero .rank-svg { filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.badge-cell.locked .badge-ico { opacity: .32; filter: grayscale(.7); }
.badge-ico { position: relative; display: inline-block; }
.badge-ico .lock { position: absolute; right: -2px; bottom: -2px; font-size: 14px; }
.badge-next { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 800;
  color: var(--brand-2); background: var(--brand-dim); border-radius: 6px; padding: 1px 6px; }
.badge-nm { font-weight: 800; font-size: 13.5px; margin-top: 7px; }
.badge-xp { font-size: 11.5px; }
.event-card { display: block; color: var(--text); position: relative; overflow: hidden;
  border-color: rgba(255,207,92,.3); transition: transform .14s, box-shadow .16s; }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event-tag { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .05em;
  color: #1a1400; background: linear-gradient(90deg, var(--gold), #ffe07a); border-radius: 6px; padding: 2px 8px; }
.feed-title { margin-top: 24px; font-size: 18px; }
.feed-title { margin-top: 26px; font-size: 18px; }
.ledger-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ledger-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: 15px; }
.ledger-row:last-of-type { border-bottom: 0; }
.stats { list-style: none; padding: 0; }
.stats li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.stats li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.stats li:last-child { border-bottom: 0; }
.top-right { display: flex; gap: 8px; align-items: center; }
.top-right { gap: 7px; }

/* ===== v21 보강: 누락 클래스 + 반응형 헤더 ===== */
.price-live { display:flex; align-items:center; justify-content:space-between; gap:12px;
  background: var(--bg-soft); border:1px solid var(--line); border-radius: var(--r-md);
  padding:14px 16px; margin:8px 0 14px; }
.bet-form { margin-top:10px; }
.bet-form input[type=number] { width:100%; }
.share-btn, .share-post, .reply-btn { cursor:pointer; }
.top-right { display:flex; align-items:center; gap:10px; }
.nav-desktop { display:inline-flex; align-items:center; gap:6px; }
.bell { position:relative; font-size:18px; text-decoration:none; }
.bell .bell-dot { position:absolute; top:-6px; right:-8px; background:var(--down); color:#fff;
  font-size:10px; font-weight:800; line-height:1; padding:3px 5px; border-radius:999px; }
@media (max-width: 620px){
  .nav-desktop { display:none !important; }
  a.me-chip.nav-desktop, a.nav-link.nav-desktop { display:none !important; }
  main { padding-bottom: 84px; }
}

/* ===== ⚡ 실시간 라운드 (패리뮤추얼) ===== */
.round-card { border-color: rgba(109,92,255,.3); }
.round-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.round-coin { font-size:17px; }
.round-price { font-weight:800; font-size:15px; }
.round-timer { margin:10px 0 8px; font-size:14px; }
.round-timer .cd { color:var(--brand-2); font-variant-numeric:tabular-nums; }
.pool-bar { display:flex; height:14px; border-radius:8px; overflow:hidden; background:var(--line); margin:6px 0; }
.pool-up { background:var(--up); transition:width .5s ease; }
.pool-down { background:var(--down); transition:width .5s ease; }
.pool-meta { display:flex; justify-content:space-between; font-size:13px; font-weight:700; }
.up-t { color:var(--up); }
.down-t { color:var(--down); }
.my-bet { margin-top:12px; font-weight:700; font-size:14px; }
.round-bet { margin-top:12px; }
.round-bet input[type=number] { width:100%; margin-bottom:8px; }
.bet-btns { display:flex; gap:10px; }
.bet-btns .btn { flex:1; text-align:center; }
.bet-up { background:var(--up); color:#08130b; }
.bet-down { background:var(--down); color:#fff; }
.locked-card { opacity:.9; }
.result-row { display:flex; justify-content:space-between; align-items:center; gap:8px;
  padding:9px 0; border-bottom:1px solid var(--line); font-size:14px; }
.result-row:last-child { border-bottom:0; }

/* 라운드 단계 배지 + 미니차트 + 코인칩 */
.badge-live { display:inline-block; font-size:11px; font-weight:800; color:var(--up);
  background:rgba(38,208,124,.15); border:1px solid rgba(38,208,124,.4); border-radius:999px; padding:2px 8px; margin-left:6px; }
.badge-watch { display:inline-block; font-size:11px; font-weight:800; color:var(--brand-2);
  background:var(--brand-dim); border-radius:999px; padding:2px 8px; margin-left:6px; }
.round-no { font-size:12px; color:var(--muted); font-weight:700; }
.spark-wrap { position:relative; height:70px; margin:10px 0 4px; }
.coin-tabs { display:flex; gap:8px; overflow-x:auto; padding:4px 0 10px; }
.coin-tab { flex:none; padding:8px 14px; border-radius:999px; border:1px solid var(--line);
  background:var(--card); color:var(--text-dim); font-weight:700; font-size:13px; }
.coin-tab:hover { border-color:var(--brand-2); color:var(--brand-2); }

/* 실시간 가격 틱 + 등락 배지 */
.chg { font-size:12px; font-weight:800; margin-left:2px; }
.chg.up { color:var(--up); } .chg.down { color:var(--down); } .chg.even { color:var(--muted); }
.live-price { transition:color .25s; }
.live-price.tick-up { color:var(--up); }
.live-price.tick-down { color:var(--down); }
.coin-hero { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.coin-hero .big { font-size:30px; font-weight:900; }
.coin-hero .unit { color:var(--muted); font-weight:700; }
/* 상세 결과 테이블 */
.res-detail { display:grid; grid-template-columns:auto 1fr auto; gap:4px 12px; align-items:center;
  padding:12px 0; border-bottom:1px solid var(--line); }
.res-detail:last-child { border-bottom:0; }
.res-badge { font-weight:800; font-size:13px; padding:3px 10px; border-radius:999px; text-align:center; }
.res-badge.up { color:#08130b; background:var(--up); }
.res-badge.down { color:#fff; background:var(--down); }
.res-badge.void { color:var(--muted); background:var(--line); }
.res-prices { font-size:13px; color:var(--text-dim); }
.res-prices .arrow { color:var(--muted); margin:0 4px; }
.res-chg { font-weight:800; font-size:13px; }
.res-meta { font-size:11.5px; color:var(--muted); }

.lock-diff { font-size:12px; font-weight:800; margin-left:2px; }
