/* ============================================================================
   Scoreix V3 — "warm-luxe quant terminal" design system.
   Ivory paper + espresso ink + gold, one electric-blue data accent. Premium,
   spacious, typographically confident. One file, no per-page CSS.
   ========================================================================== */
:root {
  /* ground */
  --bg-1: #f5efe2; --bg-2: #ebe0cb; --paper: #fdfaf3; --paper-2: #f4ecd9;
  --espresso: #201a11; --espresso-2: #2c241786;
  /* ink */
  --ink: #211c13; --ink-2: #6c6350; --ink-3: #9d927b; --ink-inv: #f3ead4;
  /* line */
  --line: rgba(92,79,52,0.14); --line-2: rgba(92,79,52,0.22); --line-gold: rgba(176,130,26,0.30);
  /* accent */
  --gold: #b0821c; --gold-2: #d8b24e; --gold-soft: rgba(176,130,26,0.12);
  --blue: #2f6bd0; --blue-2: #6fa0e8; --green: #12905a; --red: #c8452f; --orange: #cf6a1a; --purple: #7c4ddb;
  /* elevation */
  --sh-1: 0 2px 8px rgba(120,96,44,0.06), 0 8px 24px rgba(120,96,44,0.08);
  --sh-2: 0 4px 14px rgba(120,96,44,0.10), 0 18px 44px rgba(120,96,44,0.13);
  --sh-gold: 0 10px 30px rgba(176,130,26,0.22);
  --r: 20px; --r-md: 15px; --r-sm: 11px;
  --maxw: 940px;
  --font: 'Pretendard Variable','Pretendard',-apple-system,BlinkMacSystemFont,system-ui,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --mono: 'Outfit',var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font);
  font-weight: 420; font-size: 15px; line-height: 1.55; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(176,130,26,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 8%, rgba(47,107,208,0.05), transparent 55%),
    linear-gradient(172deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
}
/* meaningful-unit line breaking, identical on iOS / Android / PC */
/* meaningful-unit line breaking: keep-all wraps Korean at 어절(word) boundaries,
   never mid-syllable; overflow-wrap only kicks in for very long unbroken tokens
   (URLs, long Latin words). This is site-wide via the universal selector. */
*, body { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, .sect-h, .card-t, .ph h1 { text-wrap: balance; }
p, .ph p, .note, .sub, .legal, .empty, .tr-method, .bd-cmt-b, .chat-m,
.vsub, .hkick, .auth-pt, #bdVBody, .radar-wp small { text-wrap: pretty; }
a { color: var(--blue); text-decoration: none; }
::selection { background: rgba(176,130,26,0.24); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 18px 16px 72px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- top bar: slim, glassy, minimal ---------- */
.nav { position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(247,241,229,0.92), rgba(247,241,229,0.72));
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 11px 16px; display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.brand { position: relative; font-family: var(--mono); font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }
.brand b { color: var(--gold); }
.brand-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: 3px; vertical-align: 3px; box-shadow: 0 0 0 3px rgba(18,144,90,0.16); animation: pulse 2s infinite; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nlink { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nlink:hover { color: var(--ink); background: rgba(92,79,52,0.06); }
.nlink.on { color: var(--gold); }
.nlink.login { color: var(--ink-2); }
.njoin { font-size: 14px; font-weight: 800; color: #2a2008; margin-left: 4px; padding: 8px 16px; border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: var(--sh-gold); transition: transform .15s, box-shadow .15s; }
.njoin:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(176,130,26,0.30); }

/* ---------- page header ---------- */
.ph { display: flex; flex-direction: column; gap: 4px; }
.ph h1 { font-size: 25px; font-weight: 850; color: var(--ink); margin: 0; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.ph p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ---------- home hero spotlight (the #1 AI pick, cinematic) ---------- */
.spot { position: relative; overflow: hidden; border-radius: var(--r); padding: 22px 22px 20px;
  background: radial-gradient(120% 140% at 8% 0%, #2c2415 0%, #1b160e 60%, #141009 100%);
  color: var(--ink-inv); box-shadow: var(--sh-2); border: 1px solid rgba(176,130,26,0.22); }
.spot::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 200px at 92% -10%, rgba(216,178,78,0.20), transparent 60%),
  radial-gradient(500px 240px at -5% 120%, rgba(47,107,208,0.16), transparent 60%); pointer-events: none; }
.spot-tag { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(216,178,78,0.10); border: 1px solid rgba(216,178,78,0.28); padding: 4px 11px; border-radius: 5px; }
.spot-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); }
.spot-body { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 14px; }
.spot-league { font-size: 12px; color: rgba(243,234,212,0.6); font-weight: 600; }
.spot-match { font-family: var(--mono); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 8px; line-height: 1.12; }
.spot-match .vs { color: var(--gold-2); font-size: 15px; margin: 0 8px; font-weight: 700; }
.spot-pick { font-size: 14px; color: rgba(243,234,212,0.82); }
.spot-pick b { color: #fff; font-weight: 800; }
.spot-hook { margin-top: 8px; display: inline-block; font-size: 12px; font-weight: 800; color: var(--gold-2);
  background: rgba(216,178,78,0.14); border: 1px solid rgba(216,178,78,0.3); padding: 4px 10px; border-radius: 999px; }
.spot-num { text-align: center; padding-left: 8px; }
.spot-num .n { font-family: var(--mono); font-size: 52px; font-weight: 900; line-height: 1; color: #fff; letter-spacing: -0.02em; }
.spot-num .n span { font-size: 22px; color: var(--gold-2); }
.spot-num .cap { font-size: 11px; color: rgba(243,234,212,0.6); font-weight: 700; margin-top: 4px; letter-spacing: 0.03em; }
.spot-cta { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 800; color: #2a2008;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); padding: 9px 16px; border-radius: 11px; box-shadow: var(--sh-gold); }
.spot-cta:hover { transform: translateY(-1px); }

/* ---------- segmented filter tabs (sleek, not a button jumble) ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 5px; scrollbar-width: none;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 1px 2px rgba(92,79,52,0.04); }
.tabs::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 7px 15px; border-radius: 10px; cursor: pointer; white-space: nowrap; user-select: none; transition: color .15s, background .15s, box-shadow .15s; }
.chip:hover { color: var(--ink); }
.chip.on { color: var(--ink); background: var(--paper); box-shadow: var(--sh-1); }

/* ---------- cards / sections ---------- */
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; box-shadow: var(--sh-1); }
.card-t { font-size: 13px; font-weight: 850; color: var(--ink); margin: 0 0 13px; display: flex; align-items: center; gap: 7px; letter-spacing: -0.01em; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3,1fr); }
.sect { display: flex; flex-direction: column; gap: 11px; }
/* 섹션 제목은 목록 사이의 "구분선" 역할까지 한다 — 제목 뒤로 헤어라인이 끝까지 이어져
   비슷하게 생긴 경기 카드 묶음들이 어디서 끊기는지 한눈에 보이게. */
.sect-h { font-size: 14.5px; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; padding: 2px 2px 0; display: flex; align-items: center; gap: 9px; }
.sect-h::before { content: ""; flex: none; width: 4px; height: 17px; border-radius: 2px; background: linear-gradient(var(--gold-2), var(--gold)); }
.sect-h::after { content: ""; flex: 1 1 auto; min-width: 12px; height: 1px; background: var(--line-2); margin-left: 2px; }
.sect-h > .sect-more, .sect-h > .radar-toggle { order: 9; }
/* 접이식 섹션 헤더 — 헤더 전체가 버튼이라 모바일에서도 누르기 쉽다 */
button.sect-fold { width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 2px 2px 0; margin: 0; }
button.sect-fold:hover .fold-ic { color: var(--gold); border-color: var(--line-gold); }
.sect-cnt { flex: none; font-size: 11px; font-weight: 800; color: var(--ink-2); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.fold-ic { order: 10; flex: none; margin-left: 4px; font-size: 11px; font-weight: 900; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 7px; width: 24px; height: 24px; line-height: 22px;
  text-align: center; transition: color .15s, border-color .15s; }
.sect-body { display: flex; flex-direction: column; gap: 11px; }
/* 홈 섹션별 색 아이덴티티 — 경기 카드가 전부 같아 보인다는 문제 해결.
   추천 픽=골드, 주요 경기=블루, 전체 경기=기본(무채색). */
.s-pick .mrow { border-color: var(--line-gold); background: linear-gradient(120deg, rgba(176,130,26,0.075), var(--paper) 55%); }
.s-pick .mrow::before, .s-major .mrow::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; }
.s-pick .mrow::before { background: linear-gradient(var(--gold-2), var(--gold)); }
.s-major .mrow { border-color: rgba(47,107,208,0.22); background: linear-gradient(120deg, rgba(47,107,208,0.05), var(--paper) 55%); }
.s-major .mrow::before { background: var(--blue); opacity: .55; }
.s-major .mrow:hover { border-color: rgba(47,107,208,0.5); }
/* 긴 설명문은 줄 길이가 길수록 읽기 어렵다. 가운데 정렬 대신 최대 폭을 제한한다. */
.note, .tr-method { max-width: 66em; }
.note { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.home-txt { color: #1d4ed8; } .away-txt { color: #b4172c; }

/* ---------- home filter bar (sport + tier) ---------- */
/* 예측대결 포인트 보상(2026-07-21) — 포인트로 프리미엄 이용권 교환 */
.pb-rw { display: flex; flex-direction: column; gap: 7px; }
.pb-rw-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--paper-2); }
.pb-rw-p { flex: 0 0 auto; font-family: var(--mono); font-size: 14px; font-weight: 900; color: var(--gold);
  min-width: 62px; overflow-wrap: normal; word-break: keep-all; }
.pb-rw-l { flex: 1; font-size: 13px; font-weight: 700; color: var(--ink); }
.pb-rw-b { flex: 0 0 auto; font-size: 12.5px; font-weight: 850; color: #2a2008; border: none; cursor: pointer;
  padding: 8px 16px; border-radius: 9px; background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: var(--sh-gold); white-space: nowrap; }
.pb-rw-b:disabled { background: var(--paper); color: var(--ink-3); box-shadow: none; border: 1px solid var(--line);
  cursor: default; font-weight: 700; }
.pb-rw-msg { margin-top: 9px; font-size: 12.5px; font-weight: 800; }
.pb-rw-msg.ok { color: var(--green); } .pb-rw-msg.err { color: var(--red); }
.pb-title { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 900;
  color: var(--gold); background: var(--gold-soft); border: 1px solid var(--line-gold);
  padding: 2px 8px; border-radius: 999px; margin-right: 5px; white-space: nowrap; }
.pb-title.sm { padding: 1px 5px; margin-right: 4px; }
.pb-avail { color: var(--gold); font-variant-numeric: tabular-nums; }
/* 적중률 탭 '자세한 검증 자료' 접기 — 기술적 지표를 첫 화면에서 내리되 지우지는 않는다 */
.tr-more { margin: 20px 0 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); overflow: hidden; }
.tr-more > summary { cursor: pointer; list-style: none; padding: 13px 16px; font-size: 13.5px; font-weight: 850;
  color: var(--ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tr-more > summary::-webkit-details-marker { display: none; }
.tr-more > summary span { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.tr-more > summary::after { content: "▾"; margin-left: auto; color: var(--ink-3); font-size: 12px; }
.tr-more[open] > summary::after { content: "▴"; }
.tr-more[open] > summary { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.tr-more-body { padding: 4px 14px 14px; }
/* 접힌 영역 안에서는 종합 적중률 히어로를 작게(첫 화면 주인공은 프리미엄·가성비) */
.tr-more-body .tr-hero { padding: 14px 16px; margin-top: 12px; }
.tr-more-body .tr-num { font-size: 34px; }
.tr-more-body .tr-edge { font-size: 20px; }
/* 적중률 탭 상단 등급 카드(프리미엄·가성비를 첫 화면에) */
.tr-toptiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin: 12px 0 4px; }
.tr-tt { display: flex; flex-direction: column; gap: 2px; padding: 13px 15px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--paper); box-shadow: var(--sh-1); color: inherit;
  transition: transform .16s, box-shadow .16s; }
.tr-tt:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.tr-tt.t-premium { background: linear-gradient(135deg, rgba(240,207,107,.16), var(--paper)); border-color: var(--line-gold); }
.tr-tt.t-value { background: linear-gradient(135deg, rgba(87,214,160,.14), var(--paper)); border-color: rgba(18,144,90,.3); }
.tr-tt-lbl { font-size: 11.5px; font-weight: 850; color: var(--ink-2); }
.tr-tt-val { font-size: 30px; font-weight: 900; line-height: 1.05; color: var(--ink); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; overflow-wrap: normal; word-break: keep-all; }
.tr-tt-val i { font-size: 16px; font-style: normal; margin-left: 1px; }
.tr-tt-sub { font-size: 11px; font-weight: 700; color: var(--ink-3); }
/* 비시즌 리그 배지 — 지난 시즌 결과로 계산한 지수임을 명시(오해 방지) */
.st-off { margin-left: 7px; font-size: 10.5px; font-weight: 800; color: var(--ink-2);
  background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: 6px; padding: 2px 7px;
  white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
/* 필터 칩 안의 개수 배지(순위 탭 종목 필터 등) */
.tab-n { font-size: 10.5px; font-weight: 800; opacity: .62; margin-left: 2px;
  font-variant-numeric: tabular-nums; overflow-wrap: normal; word-break: keep-all; }
/* 홈 경기 검색(2026-07-20) */
.msearch { position: relative; display: flex; align-items: center; margin-bottom: 7px; }
.msearch input { flex: 1; width: 100%; box-sizing: border-box; font-family: var(--font); font-size: 13.5px;
  color: var(--ink); padding: 10px 34px 10px 14px; border: 1px solid var(--line-2); border-radius: 11px;
  background: #fffdf8; outline: none; transition: border-color .14s; }
.msearch input:focus { border-color: var(--gold); }
.msearch input::placeholder { color: var(--ink-3); }
.msearch button { position: absolute; right: 8px; border: none; background: none; cursor: pointer;
  font-size: 13px; color: var(--ink-3); padding: 4px 6px; }
.msearch button:hover { color: var(--ink); }
.hfilter { display: flex; gap: 4px; overflow-x: auto; padding: 5px; scrollbar-width: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 1px 2px rgba(92,79,52,0.04); }
.hfilter::-webkit-scrollbar { display: none; }
.hfilter + .hfilter { margin-top: -5px; }
/* 홈 "전체 경기" 섹션: 필터바와 목록 사이만 살짝 벌려 헤더-필터-목록 위계를 준다 */
.hfilter + .mlist { margin-top: 3px; }
.mlist { display: flex; flex-direction: column; gap: 8px; }

/* ---------- match row (horizontal scoreboard card) ---------- */
.mrow { position: relative; overflow: hidden; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--sh-1); color: inherit; transition: transform .16s, box-shadow .16s, border-color .16s; }
.mrow:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-gold); }
.live-now { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: 11px;
  font-weight: 800; color: var(--green); background: rgba(18,144,90,.10); border: 1px solid rgba(18,144,90,.24);
  border-radius: 999px; padding: 2px 9px; }
.live-now i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.live-now b { font-weight: 900; }
.c-lean { font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: -0.01em; }
/* 근소 우세 행은 배경을 한 톤 낮춰 목록을 훑을 때 추천 픽이 먼저 눈에 들어오게 한다 */
/* 근소 우세 행의 배경 톤다운(paper-2)·폰트 굵기 차이는 제거(2026-07-20, 사장님 지적).
   배지를 숨겨도 배경색·굵기 차이만으로 추천/참고가 구분돼 로그인 게이팅이 새기 때문 —
   행 배경은 전 경기 동일(흰색), 구분은 배지(로그인 계층)로만 한다. */
.mhook { grid-column: 1 / -1; margin-top: 4px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 11.5px; font-weight: 800; color: var(--ink-2); letter-spacing: .01em; }
.btn-more { display: block; width: 100%; margin: 10px 0 4px; padding: 13px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-gold); border-radius: 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-more:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); }
.mstatus-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mleague { font-size: 9.5px; font-weight: 600; color: var(--ink-3); line-height: 1.1; max-width: 62px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mstatus { font-size: 11.5px; font-weight: 800; text-align: center; letter-spacing: 0.02em; }
.mstatus.live { color: var(--red); } .mstatus.live::before { content: "●"; font-size: 8px; margin-right: 3px; vertical-align: 1.5px; animation: pulse 1.2s infinite; }
.mstatus.fin { color: var(--green); } .mstatus.sched { color: var(--ink-3); }
.mteams-h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-width: 0; }
.mteam { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mteam.away { justify-content: flex-end; }
.mteam .nm { font-weight: 750; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.mteam.away .nm { text-align: right; }
.tava { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 850; font-size: 12.5px; color: var(--ink-2); }
.mteam.win .nm { color: var(--blue); font-weight: 850; }
.mteam.win .tava { color: var(--blue); background: rgba(47,107,208,0.08); border-color: rgba(47,107,208,0.4); }
.mscore { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mscore .sc { font-size: 17.5px; font-weight: 850; color: var(--ink); min-width: 1ch; text-align: center; }
.mscore i { font-style: normal; }
.mscore i::before { content: ":"; color: var(--ink-3); font-weight: 800; font-size: 13px; }
.mscore .sc:empty + i::before { content: "vs"; font-size: 11px; letter-spacing: 0.05em; font-weight: 800; color: var(--ink-3); }
.mpick { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mpick .c { font-size: 10.5px; color: var(--ink-2); font-weight: 700; }

/* ---------- login gate (premium / value picks hidden until signed in) ---------- */
body:not(.auth-in) .gate-blur { filter: blur(6px); pointer-events: none; user-select: none; }
.gate-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: var(--gold); white-space: nowrap; text-align: center; }
.gate-note { margin-left: 6px; font-size: 11px; color: var(--gold-2); font-weight: 800; white-space: nowrap; }
.gated { position: relative; }
.gate-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #2a2008; background: linear-gradient(135deg, var(--gold-2), var(--gold)); padding: 9px 16px; border-radius: 11px; box-shadow: var(--sh-gold); }
body.auth-in .gate-lock, body.auth-in .gate-note,
body.auth-in .gate-login, body.auth-in .radar-gate { display: none !important; }
/* auth-only: 로그인 상태에서만 보인다(gate-login 의 반대). 선별 스트립에서 로그인 전/후 안내를 교체. */
.auth-only { display: none !important; }
body.auth-in span.auth-only, body.auth-in b.auth-only { display: inline !important; }
body.auth-in div.auth-only { display: block !important; }
.tier-badge { font-size: 9.5px; font-weight: 900; padding: 3px 8px; border-radius: 5px; display: inline-block; letter-spacing: 0.02em; }
.t-premium { background: linear-gradient(135deg,#f0cf6b,#cf9a24); color: #3a2c05; box-shadow: 0 3px 10px rgba(207,154,36,0.3); }
.t-value { background: linear-gradient(135deg,#57d6a0,#12905a); color: #05271a; }
/* 추천 3등급(프리미엄·가성비·AI 분석)은 '채워진' 배지, 근소 우세만 '비어있는' 배지 —
   색상 차이가 아니라 형태 차이라 흑백으로 봐도, 훑어봐도 구분된다. */
.t-general { background: rgba(47,107,208,0.13); color: #2f6bd0; border: 1px solid rgba(47,107,208,0.3); }
/* 근소 우세 = 추천이 아닌 참고 지표. 채도·굵기를 모두 낮추고 점선으로 '미확정' 느낌을 준다. */
.t-lean { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-2); font-weight: 700; opacity: .85; }
/* 예정 경기 공용 '추천' 배지 — 프리미엄/가성비/AI분석을 킥오프 전에 구분하지 않는 단일 형태.
   (구분되는 순간 잠금 모양만으로 선별이 새기 때문에, 셋 다 이 배지 하나로 렌더된다) */
.t-rec { background: rgba(15,138,85,0.12); color: #0f8a55; border: 1px solid rgba(15,138,85,0.32); }
.mp-inner { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.c-lock { font-size: 10.5px; font-weight: 800; color: var(--ink-3); letter-spacing: -0.01em; }
/* 종료 카드 즉시 판정 — 맞은 것과 틀린 것을 같은 크기·같은 자리에 표시(정직성 원칙) */
.cr-hit { color: #0f8a55; font-weight: 800; }
.cr-miss { color: #c0392b; font-weight: 800; }
/* 오늘의 선별 스트립 — 개수만 공개하는 후킹 */
.selstrip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; margin-top: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none; }
.selstrip .ss-t { font-size: 12px; font-weight: 900; color: var(--ink); white-space: nowrap; }
.selstrip .ss-counts { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.selstrip .ss-counts b { font-weight: 800; }
.selstrip .ss-p { color: #b0821c; } .selstrip .ss-v { color: #12905a; } .selstrip .ss-g { color: #2f6bd0; }
.selstrip .ss-note { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.selstrip .ss-note b { color: var(--ink-2); }
.selstrip .ss-cta { margin-left: auto; font-size: 12px; font-weight: 900; color: var(--gold); white-space: nowrap; }
/* ---- 로그인 사다리(2026-07-20): 비로그인은 '어떤 경기가 추천인지'(이진)조차 숨긴다 ----
   개수(선별 스트립) → 이진 추천/참고(로그인·무료) → 등급·수치·분석(구독) 의 3단.
   로그인이 무료라 스크래핑 방어 수준까진 불필요 — 뚫는 노력이 가입 노력보다 크면 충분하다.
   킥오프 후 카드(.mp-sched 없음)는 이 규칙과 무관하게 전원 공개 유지. */
body:not(.auth-in) .mpick.mp-sched { display: none; }
body:not(.auth-in) .sect.s-pick:not(.s-nopick) { display: none; }
body.auth-in .s-pick-gate { display: none !important; }
body:not(.auth-in) .hfilter[data-dim="tier"] { display: none; }
body:not(.auth-in) .verdict.prem-gate .recflag,
body:not(.auth-in) .verdict.prem-gate .lean-note { display: none; }
/* 픽 '방향'도 로그인 계층(2026-07-20): 비로그인은 예정 경기의 픽 자체를 못 본다 */
body:not(.auth-in) .verdict.prem-gate .vpick { display: none; }
.vpick-gate { font-size: 15px; font-weight: 800; color: var(--ink-2); margin: 2px 0 4px; }
.vpick-gate a { color: var(--gold); }
/* 상세페이지 킥오프 전 잠금 자리(전 등급 동일 구조) */
/* 적중률 페이지 전환 CTA — 메인 배너 도착자의 71.4%가 이 페이지에 오는데 요청 장치가 없었다
   (로그 실측 2026-07-27). 3단 상태: 비로그인 → 로그인 유도 / 로그인·미구독 → 구독 유도 /
   구독자 → 전체 숨김. 상태는 body 의 auth-in · sub-in 클래스로 갈린다. */
.trcta { margin: 14px 0 4px; padding: 15px 17px; border: 1px solid var(--line-gold); border-radius: 14px;
  background: linear-gradient(135deg, rgba(240,207,107,.13), var(--paper)); }
.trcta-t { font-size: 14px; font-weight: 900; color: var(--ink); line-height: 1.45; }
.trcta-s { margin-top: 6px; font-size: 12px; line-height: 1.65; font-weight: 600; color: var(--ink-2); }
.trcta-s b, .trcta-t b { color: var(--ink); }
.trcta-b { width: auto; display: inline-block; padding: 10px 22px; margin-top: 12px; }
.trcta-in { display: none; }
body.auth-in .trcta-out { display: none; }
body.auth-in .trcta-in { display: block; }
body.sub-in .trcta { display: none; }   /* 이미 구독 중이면 아무것도 묻지 않는다 */
@media (max-width: 520px) { .trcta { padding: 13px 14px; } .trcta-t { font-size: 13px; } .trcta-b { width: 100%; text-align: center; } }

.lockline { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 11px; background: var(--paper-2); }
.lockline-t { font-size: 12.5px; font-weight: 900; color: var(--ink); }
.lockline-s { margin-top: 5px; font-size: 11.5px; line-height: 1.6; font-weight: 600; color: var(--ink-2); }
.lockline-s a { color: var(--gold); font-weight: 800; }
.lean-note { margin-top: 10px; font-size: 11.5px; line-height: 1.55; font-weight: 600; color: var(--ink-2);
  background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 9px 11px; }
.lean-note b { color: var(--ink); } .lean-note a { color: var(--gold); font-weight: 800; }
/* 추천 픽이 0개인 날 — 빈 자리를 감추지 않고 "왜 없는지"를 설명하는 자리로 쓴다 */
.nopick { font-size: 12.5px; line-height: 1.65; font-weight: 600; color: var(--ink-2); background: var(--paper);
  border: 1px dashed var(--line-gold); border-radius: 14px; padding: 14px 16px; }
.nopick b { color: var(--ink); } .nopick a { color: var(--gold); font-weight: 800; }
/* 무승부 위험 — '승' 픽은 비기면 미적중이라는 사실을 픽 옆에서 바로 알린다 */
/* 종료 경기 결과 판정 카드 — 적중/빗나감을 같은 비중으로 보여준다 */
.recap { border-left: 4px solid var(--ink-3); }
.recap.hit { border-left-color: var(--green); background: linear-gradient(100deg, rgba(18,144,90,.06), var(--paper) 60%); }
.recap.miss { border-left-color: var(--red); background: linear-gradient(100deg, rgba(200,69,47,.06), var(--paper) 60%); }
.recap-txt { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.recap-txt b { color: var(--ink); font-weight: 850; }
.drawrisk { margin-top: 9px; font-size: 11.5px; font-weight: 800; color: var(--ink-2); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; line-height: 1.5; }
.drawrisk b { color: var(--ink); }
.drawrisk span { font-weight: 600; }
.drawrisk.hi { color: var(--orange); background: rgba(207,106,26,0.09); border-color: rgba(207,106,26,0.3); }
.drawrisk.hi b { color: var(--orange); }
/* .vpick 이 뒤에 정의돼 있어 순서로는 못 이긴다 — 특정도(0,2,0)로 확정 적용.
   추천이 아닌 픽을 추천과 같은 초록색으로 두면 문구와 색이 서로 다른 말을 한다. */
.vpick.vpick-lean { color: var(--ink-2); }

/* ---------- standings ---------- */
table.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-1); }
.tbl th, .tbl td { padding: 11px 13px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); }
/* 헤더도 좁은 칸에서 전역 overflow-wrap:anywhere 때문에 "순위"가 세로로 쪼개졌다(2026-07-21) */
.tbl th { background: var(--paper-2); color: var(--ink-2); font-weight: 800; font-size: 11.5px;
  letter-spacing: 0.02em; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; } .tbl tbody tr:hover { background: rgba(176,130,26,0.05); }
/* ⚠️ 전역 `overflow-wrap: anywhere`(긴 URL 대응) 때문에 좁은 칸에서 **숫자까지 쪼개진다** —
   순위 "10"이 1/0 으로 세로로 갈라져 행이 43px→63px 로 늘어났다(2026-07-20 수정).
   숫자·수치 칸은 절대 줄바꿈되지 않게 못 박는다. */
.tbl td.rk { font-family: var(--mono); font-weight: 800; color: var(--ink); width: 40px;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.tbl td.tm { font-weight: 700; color: var(--ink); }
.tbl td.elo { text-align: right; font-family: var(--mono); font-weight: 800; color: var(--blue);
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
/* 숫자가 들어가는 좁은 표시 요소 전반에 동일 보호 */
.tbl td.r, .mscore, .sc, .ta-val, .big, .n, .rd-idx b, .lvl, .bd-c, .tier-badge, .mstatus {
  overflow-wrap: normal; word-break: keep-all; }
.form { display: inline-flex; gap: 3px; }
.form span { width: 17px; height: 17px; border-radius: 5px; font-size: 10px; font-weight: 900; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.f-w { background: var(--green); } .f-l { background: var(--red); } .f-d { background: var(--ink-3); }

/* ---------- match detail ---------- */
.crumb { display: flex; gap: 7px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; align-items: center; }
.crumb a { color: var(--ink-2); }
.hero { position: relative; overflow: hidden; border-radius: var(--r); padding: 22px 20px; box-shadow: var(--sh-2);
  background: linear-gradient(158deg, #fefcf6 0%, #f1e8d5 100%); border: 1px solid var(--line-gold); }
.hero-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.hteam { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.hteam .nm { font-size: 16.5px; font-weight: 850; color: var(--ink); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; letter-spacing: -0.01em; }
.hteam .side { font-size: 10.5px; color: var(--ink-3); font-weight: 700; letter-spacing: 0.04em; }
.hcenter { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; }
.hscore { font-family: var(--mono); font-size: 34px; font-weight: 900; color: var(--ink); letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
.hkick { font-size: 11px; color: var(--ink-2); }
.verdict { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: linear-gradient(135deg, rgba(176,130,26,0.11), rgba(253,250,243,0.5)); border: 1px solid var(--line-gold); border-radius: var(--r-md); padding: 16px 18px; }
.recflag { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 900; letter-spacing: 0.01em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 7px;
  color: #05271a; background: linear-gradient(135deg,#57d6a0,#12905a); box-shadow: 0 3px 10px rgba(18,144,90,0.22); }
.recflag.no { color: var(--ink-3); background: none; border: 1px dashed var(--line-2); box-shadow: none; font-weight: 800; }
.vlabel { font-size: 10px; font-weight: 800; color: var(--gold); letter-spacing: 0.09em; text-transform: uppercase; }
.vpick { font-family: var(--mono); font-size: 25px; font-weight: 900; color: var(--green); margin: 4px 0 5px; letter-spacing: -0.01em; }
.vsub { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.vsub b { color: var(--ink); font-weight: 800; }
.gauge { display: flex; flex-direction: column; align-items: center; }
.gauge-lab { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-top: 3px; }
.gauge-arc { stroke-dasharray: 110; animation: arc 1.2s cubic-bezier(.4,0,.2,1) both; }
.prob { margin-top: 15px; }
.prob-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.prob-bar { height: 13px; border-radius: 5px; overflow: hidden; display: flex; background: rgba(92,79,52,0.10); }
.prob-h { background: linear-gradient(90deg, var(--blue), var(--blue-2)); } .prob-d { background: var(--ink-3); } .prob-a { background: linear-gradient(90deg,#e08a7a,var(--red)); }
.tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 15px 8px; text-align: center; box-shadow: var(--sh-1); transition: transform .16s, box-shadow .16s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.tile .ic { font-size: 19px; margin-bottom: 6px; } .tile .v { font-family: var(--mono); font-size: 21px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; } .tile .l { font-size: 11.5px; color: var(--ink-2); font-weight: 700; margin-top: 3px; }
.bar { height: 8px; border-radius: 5px; overflow: hidden; display: flex; background: rgba(92,79,52,0.10); margin-top: 7px; }
.bar > div { height: 100%; }
.cmp { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin: 8px 0 2px; }
/* 전력 비교 head-to-head panel */
.cmprow { padding: 9px 0; border-top: 1px solid var(--line); }
.cmprow:first-of-type { border-top: none; padding-top: 2px; }
.cmprow-h { font-size: 11px; font-weight: 800; color: var(--ink-3); margin-bottom: 5px; letter-spacing: .01em; }
.cmprow-note { font-weight: 700; color: var(--ink-3); opacity: .8; margin-left: 4px; }
.cmprow-b { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fbadges { display: flex; gap: 3px; } .fbadges-r { flex-direction: row-reverse; }
.fb { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 5px; font-size: 10.5px; font-weight: 900; color: #fff; }
.fb-W { background: var(--green); } .fb-L { background: var(--red); } .fb-D { background: var(--ink-3); }
.fb-none { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.cmp-legend { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: 11px; font-weight: 800; }
.kp-card { border-left: 3px solid var(--orange); }
.kp { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kp:first-of-type { border-top: none; }
.kp-ic { font-size: 15px; flex: none; }
.kp-lbl { font-weight: 900; color: var(--orange); flex: none; min-width: 58px; }
.kp-txt { font-weight: 700; color: var(--ink); }
/* 🆚 최근 맞대결 (head-to-head) */
.h2h-list { display: flex; flex-direction: column; }
.h2h-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.h2h-row:first-child { border-top: none; }
.h2h-date { font-size: 11px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.h2h-mt { font-weight: 700; color: var(--ink); } .h2h-mt b { font-variant-numeric: tabular-nums; }
.h2h-res { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.h2h-res.r-w { color: var(--green); background: rgba(18,144,90,0.12); }
.h2h-res.r-l { color: var(--red); background: rgba(200,69,47,0.12); }
.h2h-res.r-d { color: var(--ink-3); background: rgba(92,79,52,0.10); }
details.acc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 17px; box-shadow: var(--sh-1); }
details.acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 850; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc[open] .arw { transform: rotate(180deg); } .arw { transition: transform .2s; color: var(--ink-3); }
.iscore { width: 100%; border-collapse: collapse; text-align: center; }
.iscore th, .iscore td { padding: 7px 5px; font-size: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.iscore th { background: var(--paper-2); color: var(--ink-2); font-weight: 800; }
.iscore td.tm { text-align: left; font-weight: 800; color: var(--ink); }
.iscore td.r { font-weight: 900; color: var(--blue); }

/* calibration badge (self-calibrated confidence) */
.calbadge { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--ink-2); font-weight: 600; background: rgba(47,107,208,0.07); border: 1px solid rgba(47,107,208,0.18); padding: 5px 11px; border-radius: 5px; }
.calbadge b { font-family: var(--mono); font-size: 15px; font-weight: 900; color: var(--blue); }

/* ---------- live win-probability curve ---------- */
.wpcard { background: linear-gradient(162deg, #fefcf6, #f5eede); }
.wp-tag { font-size: 9.5px; font-weight: 900; letter-spacing: .3px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); padding: 3px 9px; border-radius: 5px; margin-left: auto; }
.wp-live { font-size: 10px; font-weight: 900; color: var(--red); margin-left: 9px; letter-spacing: .3px; animation: wpblink 1.4s ease-in-out infinite; }
@keyframes wpblink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.wp-now { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.wp-now-lab { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.wp-now-lab b { color: var(--ink); }
.wp-val { font-family: var(--mono); font-size: 27px; font-weight: 900; color: var(--blue); font-variant-numeric: tabular-nums; line-height: 1; transition: color .35s ease; }
.wp-pct { font-size: 14px; color: var(--blue); font-weight: 900; }
.wp-mom { font-size: 11px; font-weight: 900; padding: 2px 9px; border-radius: 20px; margin-left: 4px; }
.wp-mom.up { color: #0f8a55; background: rgba(15,138,85,0.13); }
.wp-mom.down { color: var(--red); background: rgba(200,69,47,0.13); }
.wp-mom.flat { color: var(--ink-3); background: rgba(128,116,92,0.13); }
.wp-chart { position: relative; padding: 6px 0; }
.wp-chart svg { width: 100%; aspect-ratio: 360 / 90; height: auto; max-height: 210px; display: block; overflow: visible; }
.wp-chart [data-wp-dot] { transition: fill .35s ease; }
.wp-pulse { opacity: 0; }
.wp-pulse.live { animation: wppulse 1.9s ease-out infinite; }
@keyframes wppulse { 0% { r: 4px; opacity: .65; } 70%,100% { r: 12px; opacity: 0; } }
.wp-zlab { position: absolute; left: 3px; font-size: 9px; font-weight: 800; letter-spacing: .2px; pointer-events: none; opacity: .5; }
.wp-ztop { top: 4px; color: var(--blue); }
.wp-zbot { bottom: 28px; color: var(--red); }
.wp-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); font-weight: 700; margin-top: 5px; }
.wp-axis span:nth-child(2) { color: var(--ink-2); }

/* ---------- track record ---------- */
.tr-hero { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tr-hero > * { min-width: 0; }
.tr-big, .tr-gloss { border-radius: var(--r); padding: 24px 20px; text-align: center; box-shadow: var(--sh-2); }
.tr-big { background: linear-gradient(158deg, #fefcf6, #f1e7d3); border: 1px solid var(--line-gold); }
.tr-gloss { background: radial-gradient(120% 140% at 10% 0%, #2c2415, #17120b); border: 1px solid rgba(18,144,90,0.3); display: flex; flex-direction: column; justify-content: center; color: var(--ink-inv); }
.tr-num { font-family: var(--mono); font-size: 62px; font-weight: 900; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tr-num span { font-size: 27px; margin-left: 2px; }
.tr-cap { font-size: 13px; font-weight: 850; color: var(--ink); margin-top: 8px; }
.tr-gloss .tr-cap { color: var(--ink-inv); }
.tr-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 6px; }
.tr-vs { font-size: 11.5px; color: rgba(243,234,212,0.65); font-weight: 700; }
.tr-edge { font-family: var(--mono); font-size: 38px; font-weight: 900; color: #57d6a0; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tr-method { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; margin: 0; }
.tr-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; box-shadow: var(--sh-1); }
.tr-sp { font-size: 13px; font-weight: 850; color: var(--ink); }
.tr-track { position: relative; height: 15px; border-radius: 5px; background: rgba(92,79,52,0.10); overflow: hidden; }
.tr-fill { height: 100%; border-radius: 5px; }
.tr-fill.hi { background: linear-gradient(90deg, #57d6a0, var(--green)); }
.tr-fill.mid { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.tr-fill.lo { background: linear-gradient(90deg, #e0a08a, var(--orange)); }
.tr-mark { position: absolute; top: -3px; width: 2px; height: 21px; background: rgba(33,28,19,0.35); }
.tr-pct { font-family: var(--mono); font-weight: 900; font-size: 17px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.tr-pct small { display: block; font-family: var(--font); font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.tr-live { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.tr-livecard { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 15px 8px; text-align: center; box-shadow: var(--sh-1); }
.tr-livecard .v { font-family: var(--mono); font-size: 22px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.tr-livecard .l { font-size: 11.5px; color: var(--ink-2); font-weight: 700; margin-top: 3px; }
.tr-feed { display: flex; flex-direction: column; gap: 6px; }
.tr-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: 11px; padding: 10px 13px; font-size: 12.5px; }
.tr-item.hit { border-left-color: var(--green); } .tr-item.miss { border-left-color: var(--red); }
.tr-v { font-weight: 900; font-size: 11.5px; } .tr-item.hit .tr-v { color: var(--green); } .tr-item.miss .tr-v { color: var(--red); } .tr-item.push .tr-v { color: var(--ink-3); }
.tr-mt { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tr-mt b { font-family: var(--mono); }
.tr-pk { font-size: 11px; color: var(--ink-2); font-weight: 700; text-align: right; white-space: nowrap; }

/* ---------- auth (signup / login) ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--line-gold); min-height: 540px; }
.auth-story { position: relative; overflow: hidden; padding: 34px 30px; color: var(--ink-inv);
  background: radial-gradient(130% 130% at 0% 0%, #2c2415, #16110a); display: flex; flex-direction: column; justify-content: space-between; }
.auth-story::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 100% -10%, rgba(216,178,78,0.22), transparent 60%); }
.auth-brand { position: relative; font-family: var(--mono); font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.auth-brand b { color: var(--gold-2); }
.auth-head { position: relative; font-size: 27px; font-weight: 850; line-height: 1.28; margin: 20px 0 14px; letter-spacing: -0.02em; }
.auth-head .hl { color: var(--gold-2); }
.auth-pts { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.auth-pt { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: rgba(243,234,212,0.86); }
.auth-pt .ico { flex: 0 0 26px; height: 26px; border-radius: 8px; background: rgba(216,178,78,0.14); border: 1px solid rgba(216,178,78,0.3); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.auth-pt b { color: #fff; font-weight: 800; }
.auth-foot { position: relative; font-size: 11.5px; color: rgba(243,234,212,0.5); }
.auth-form { background: var(--paper); padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { font-size: 21px; font-weight: 850; margin: 0 0 4px; letter-spacing: -0.01em; }
.auth-form .sub { font-size: 13px; color: var(--ink-2); margin: 0 0 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.field input { font-family: var(--font); font-size: 15px; color: var(--ink); padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: #fffdf8; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,208,0.12); }
.field .hint { font-size: 11px; color: var(--ink-3); }
.field.err input { border-color: var(--red); } .field .msg { font-size: 11.5px; color: var(--red); font-weight: 700; display: none; } .field.err .msg { display: block; }
.btn-primary { font-family: var(--font); font-size: 15px; font-weight: 800; color: #2a2008; cursor: pointer; border: none; margin-top: 6px; padding: 13px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: var(--sh-gold); transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(176,130,26,0.32); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.agree { margin: 4px 0 4px; }
.agree-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.agree-row input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--gold); }
.agree-row a { font-weight: 700; } .agree-row b { color: var(--ink); }
.field.agree.err .agree-row { color: var(--red); }
.form-error { font-size: 12.5px; color: var(--red); font-weight: 700; background: rgba(200,69,47,0.08); border: 1px solid rgba(200,69,47,0.25); padding: 10px 13px; border-radius: 10px; margin-bottom: 12px; }
.auth-alt { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 18px; }
.auth-alt a { font-weight: 800; }
.auth-ok { display: none; text-align: center; padding: 24px 8px; }
.auth-ok .big { font-size: 40px; } .auth-ok h3 { font-size: 18px; font-weight: 850; margin: 10px 0 6px; } .auth-ok p { font-size: 13px; color: var(--ink-2); margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 11.5px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- home two-column layout: left chat sidebar ---------- */
.wrap-wide { max-width: 1260px; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.chat-fab { display: none; }
@media (min-width: 1100px) {
  .home-lay { display: block; }   /* 채팅 사이드바 제거 후 1단 레이아웃 */
  .chat-side { position: sticky; top: 64px; }
  .chat-side .chat-msgs { height: calc(100vh - 300px); min-height: 320px; max-height: 640px; }
  .chat-close { display: none; }
}
@media (max-width: 1099.9px) {
  .chat-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); z-index: 90;
    transform: translateX(-105%); transition: transform .25s cubic-bezier(.2,.7,.2,1);
    padding: 12px; background: var(--bg-1); box-shadow: 12px 0 40px rgba(0,0,0,0.18); overflow-y: auto; }
  .chat-side.open { transform: none; }
  .chat-side .chat-msgs { height: calc(100vh - 210px); }
  .chat-fab { display: flex; align-items: center; justify-content: center; position: fixed; right: 16px; bottom: 18px; z-index: 80;
    width: 52px; height: 52px; border-radius: 50%; border: none; font-size: 22px; cursor: pointer;
    background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: var(--sh-gold); }
}
.chat-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 850; color: var(--ink); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-close { border: none; background: none; font-size: 14px; color: var(--ink-3); cursor: pointer; }

/* ---------- date navigation (어제/오늘/내일) ---------- */
.daynav { display: flex; gap: 8px; }
.day-chip { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 6px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink-2); transition: transform .15s, border-color .15s; }
.day-chip b { font-size: 13.5px; color: inherit; } .day-chip span { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); }
.day-chip:hover { transform: translateY(-1px); border-color: var(--line-gold); }
.day-chip.on { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: #2a2008; box-shadow: var(--sh-gold); }
.day-chip.on span { color: rgba(42,32,8,0.7); }

/* ---------- yesterday AI record banner ---------- */
.yban { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line-gold); border-radius: 13px; padding: 11px 15px; box-shadow: var(--sh-1); font-size: 13px; color: var(--ink-2); }
.yban b { color: var(--ink); } .yban-ic { font-size: 16px; }
.yban-cta { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }

/* ---------- 신뢰 헤드라인 (Proof-of-Prediction) — 사이트 정체성 ---------- */
.trust-hero { display: flex; align-items: center; gap: 13px; background: linear-gradient(135deg, rgba(176,130,26,0.11), rgba(176,130,26,0.03)); border: 1px solid var(--line-gold); border-radius: 15px; padding: 13px 16px; box-shadow: var(--sh-1); color: inherit; transition: transform .16s, box-shadow .16s, border-color .16s; }
.trust-hero:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--gold); }
.th-badge { flex: none; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--gold-2), var(--gold)); padding: 7px 11px; border-radius: 9px; box-shadow: var(--sh-gold); white-space: nowrap; }
.th-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.th-hl { font-size: 13.5px; font-weight: 850; color: var(--ink); line-height: 1.35; }
.th-hl b { color: var(--gold); }
.th-proof { font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.th-proof b { color: var(--ink); font-variant-numeric: tabular-nums; }
.th-cta { margin-left: auto; flex: none; font-size: 12px; font-weight: 900; color: var(--gold); white-space: nowrap; align-self: center; }
/* tier accuracy strip (home, directly under the trust hero) — 등급별 적중률을 상단에 노출 */
.tieracc { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin-top: 10px; }
.tacard { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--sh-1); color: inherit; transition: transform .16s, box-shadow .16s, border-color .16s; }
.tacard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.ta-lbl { font-size: 11.5px; font-weight: 850; color: var(--ink-2); white-space: nowrap; }
.ta-val { font-family: var(--mono); font-size: 27px; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ta-val i { font-size: 15px; font-style: normal; margin-left: 1px; }
.ta-sub { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.ta-warn { font-size: 10px; font-weight: 800; color: var(--orange); background: rgba(207,106,26,0.12); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.ta-hero { position: relative; border-width: 2px; box-shadow: 0 10px 30px rgba(176,130,26,.16), var(--sh-1); }
.ta-hero .ta-val { font-size: 34px; }
.ta-hero .ta-lbl { font-size: 12.5px; color: var(--ink); }
@media (max-width: 560px) { .ta-hero .ta-val { font-size: 30px; } }
/* 모바일 상단 압축(2026-07-20): 적중률 카드 3장을 세로로 쌓지 않고 가로 스와이프 1행으로.
   신뢰 지표 노출은 유지하면서 '전체 경기' 시작점을 위로 끌어올린다. */
@media (max-width: 560px) {
  .tieracc { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .tieracc::-webkit-scrollbar { display: none; }
  .tacard { flex: 0 0 72%; scroll-snap-align: start; }
  .ta-hero .ta-val { font-size: 26px; }
}
.ta-premium { border-color: var(--line-gold); background: linear-gradient(135deg, rgba(176,130,26,0.10), rgba(176,130,26,0.02)); }
.ta-premium .ta-val, .ta-premium i { color: var(--gold); }
.ta-premium:hover { border-color: var(--gold); }
.ta-value { border-color: rgba(47,107,208,0.26); background: linear-gradient(135deg, rgba(47,107,208,0.09), rgba(47,107,208,0.02)); }
.ta-value .ta-val, .ta-value i { color: var(--blue); }
.ta-live .ta-val, .ta-live i { color: var(--green); }
.ta-pick { border-color: rgba(18,144,90,0.3); background: linear-gradient(135deg, rgba(18,144,90,0.09), var(--paper) 60%); }
.ta-pick .ta-val, .ta-pick i { color: var(--green); }
/* '전체 기록'이 무엇을 포함하는지 카드 라벨에서 바로 밝힌다 */
.ta-inc { font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--ink-3); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; margin-left: 3px; white-space: nowrap; }
.tieracc-note { margin-top: 7px; font-size: 11px; line-height: 1.5; font-weight: 600; color: var(--ink-3); }
.tieracc-note b { color: var(--ink-2); }
.tieracc-note a { color: var(--gold); font-weight: 800; }
.tieracc-note > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap; padding: 2px 0; }
.tieracc-note > summary::-webkit-details-marker { display: none; }
.tn-more { flex: none; font-size: 10px; font-weight: 800; color: var(--gold); border: 1px solid var(--line-gold);
  border-radius: 999px; padding: 1px 8px; }
.tieracc-note[open] .tn-more::after { content: " ▲"; }
.tieracc-note:not([open]) .tn-more::after { content: " ▼"; }
.tn-body { margin-top: 6px; max-width: 62em; }
/* per-pick trust proof (match page) */
.tproof { display: flex; align-items: center; gap: 11px; background: var(--gold-soft); border: 1px solid var(--line-gold); border-radius: 13px; padding: 12px 15px; margin-bottom: 14px; color: inherit; transition: border-color .16s, box-shadow .16s; }
.tproof:hover { border-color: var(--gold); box-shadow: var(--sh-1); }
.tproof-ic { font-size: 18px; flex: none; }
.tproof-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tproof-hl { font-size: 12.5px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.tproof-hl b { color: var(--gold); }
.tproof-rec { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.tproof-rec b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tproof-cta { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 900; color: var(--gold); white-space: nowrap; }
/* ⚾ 선발 투수 맞대결 (MLB proprietary) */
.sp-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 4px; }
.sp-col { text-align: center; min-width: 0; }
.sp-side { font-size: 11px; font-weight: 800; color: var(--ink-3); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-name { font-size: 15px; font-weight: 900; color: var(--ink); line-height: 1.2; }
.sp-tbd { color: var(--ink-3); font-weight: 700; font-size: 13px; }
.sp-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 6px; font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.sp-stats b { color: var(--blue); font-variant-numeric: tabular-nums; }
.sp-wl { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.sp-mid { font-size: 12px; font-weight: 900; color: var(--gold); flex: none; }
/* 📊 시장 라인 (reference — O/U total + run-line) */
.tot-lines { display: flex; gap: 10px; flex-wrap: wrap; }
.tot-item { flex: 1 1 140px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; }
.tot-k { font-size: 12px; font-weight: 750; color: var(--ink-2); }
.tot-vv { font-family: var(--mono); font-size: 15px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- favorite team star ---------- */
.favstar { border: none; background: none; font-size: 17px; color: var(--ink-3); cursor: pointer; padding: 0 2px; vertical-align: -1px; transition: transform .15s, color .15s; }
.favstar:hover { transform: scale(1.2); }
.favstar.on { color: var(--gold); }

/* ---------- 이변 레이더 ---------- */
.radar-row { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 13px; padding: 12px 15px; margin-bottom: 8px; box-shadow: var(--sh-1); color: inherit; transition: transform .16s, box-shadow .16s; }
.radar-row:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.radar-swing { font-family: var(--mono); font-weight: 900; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.radar-swing.up { color: var(--green); } .radar-swing.dn { color: var(--red); }
/* 리그 라벨을 팀명 줄(nowrap+ellipsis) 안에 넣으면 모바일에서 통째로 잘려 사라진다(2026-07-20 수정).
   팀명 줄과 리그 줄을 분리해 각각 제 자리를 갖게 한다. */
.radar-mt { min-width: 0; overflow: hidden; }
.radar-teams { display: block; font-weight: 700; font-size: 14px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-mt b { font-family: var(--mono); }
.radar-lg { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.radar-wp { font-size: 11.5px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.radar-wp b { color: var(--orange); font-family: var(--mono); font-size: 14px; }
.radar-wp small { display: block; color: var(--ink-3); }
.radar-gate { text-align: center; padding: 6px 0 2px; }
.sect-more { font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.radar-toggle { margin-left: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: 12px; font-weight: 800; width: 24px; height: 24px; border-radius: 7px; cursor: pointer; line-height: 1; padding: 0; }
.radar-toggle:hover { border-color: var(--line-gold); color: var(--gold); }
.sect-h .radar-toggle + .sect-more { margin-left: 8px; }

/* ---------- 이변 레이더 전용 페이지 ---------- */
.rd-item { display: flex; align-items: center; gap: 13px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--r-md); padding: 13px 15px; margin-bottom: 9px; box-shadow: var(--sh-1); }
.rd-item.rd-comeback { border-left-color: var(--green); }
.rd-item.rd-result { border-left-color: var(--red); }
.rd-item.rd-live { border-left-color: var(--blue); }
.rd-idx { flex: 0 0 60px; text-align: center; }
.rd-idx b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 900; color: var(--orange); line-height: 1; }
.rd-item.rd-comeback .rd-idx b { color: var(--green); } .rd-item.rd-result .rd-idx b { color: var(--red); }
.rd-idx.live b { color: var(--blue); } .rd-idx span { font-size: 9.5px; color: var(--ink-3); font-weight: 700; }
.rd-body { flex: 1; min-width: 0; }
.rd-teams { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-teams b { font-family: var(--mono); color: var(--blue); }
/* 팀명 줄과 분리된 독립 블록(2026-07-20) — 예전엔 .rd-teams(nowrap+hidden) 안이라 잘려 보이지 않았다 */
.rd-lg { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-why { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; } .rd-why b { color: var(--ink); }
.rd-kind { font-size: 10px; font-weight: 900; color: #fff; background: var(--orange); padding: 1px 6px; border-radius: 4px; }
.rd-item.rd-comeback .rd-kind { background: var(--green); } .rd-item.rd-result .rd-kind { background: var(--red); }
.rd-share { flex: 0 0 auto; align-self: center; font-size: 12px; font-weight: 800; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 13px; cursor: pointer; }
.rd-share:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 560px) { .rd-idx { flex-basis: 46px; } .rd-idx b { font-size: 19px; } .rd-share { padding: 7px 10px; } }
@media (max-width: 720px) { .radar-row { grid-template-columns: 56px 1fr; } .radar-wp { display: none; } }

/* ---------- chat ---------- */
.chat { padding: 0; overflow: hidden; }
.chat-msgs { height: 300px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; background: linear-gradient(180deg, var(--paper), #fbf7ec); }
.chat-m { font-size: 13.5px; line-height: 1.5; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.chat-m b { color: var(--gold); font-weight: 800; margin-right: 4px; }
.chat-m.mine b { color: var(--blue); }
.chat-m .t { font-size: 10px; color: var(--ink-3); margin-left: 5px; }
.chat-in { display: flex; gap: 8px; padding: 11px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-in input { flex: 1; font-family: var(--font); font-size: 14px; color: var(--ink); padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: #fffdf8; }
.chat-in input:focus { outline: none; border-color: var(--blue); }
.chat-note { font-size: 11px; color: var(--ink-3); padding: 0 14px 11px; background: var(--paper); }
.chat-note a { font-weight: 700; }

/* ---------- board ---------- */
.btn-ghost { font-family: var(--font); font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 18px; cursor: pointer; }

/* category chips (말머리 필터) */
/* ── 커뮤니티 상단 컨트롤: 스티키 한 덩어리 ─────────────────────────
   국내 커뮤니티(에펨 57px·클리앙 64px 행)는 한 화면에 11~14개 글을 보여준다.
   우리는 컨트롤이 500px 를 먹어 첫 화면에 글이 0개였다. 컨트롤을 압축·고정한다. */
.bd-bar { position: sticky; top: 56px; z-index: 20; padding: 8px 0 9px; margin-bottom: 10px;
  background: linear-gradient(180deg, var(--bg-1) 72%, rgba(245,239,226,0));
  backdrop-filter: saturate(180%) blur(6px); }
.bd-cats { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 7px; scrollbar-width: none; }
.bd-cats::-webkit-scrollbar { display: none; }
.bd-chip { flex: 0 0 auto; font-size: 12.5px; font-weight: 750; color: var(--ink-2); padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; white-space: nowrap; transition: all .12s; }
.bd-chip:hover { color: var(--ink); border-color: var(--line-gold); }
.bd-chip.on { color: #2a2008; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; box-shadow: var(--sh-1); }

/* toolbar: sort + search + write */
.bd-toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 0; }
.bd-write-pc { flex: none; font-size: 13px; font-weight: 850; color: #2a2008; border: none; cursor: pointer;
  padding: 8px 15px; border-radius: 8px; background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: var(--sh-gold); }
/* 모바일: 글쓰기는 우하단 FAB 로 — 툴바 한 줄을 통째로 절약한다 */
.bd-fab { display: none; position: fixed; right: 16px; bottom: 78px; z-index: 60; width: 54px; height: 54px;
  border-radius: 50%; border: none; cursor: pointer; font-size: 21px; color: #2a2008;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 24px rgba(176,130,26,.42); }
.bd-fab:active { transform: scale(.94); }
@media (max-width: 640px) {
  .bd-bar { top: 88px; }
  .bd-write-pc { display: none; }
  .bd-fab { display: block; }
  .bd-sort-b { padding: 6px 10px; font-size: 12px; }
}
.bd-sort { display: flex; gap: 2px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.bd-sort-b { font-size: 12.5px; font-weight: 750; color: var(--ink-2); padding: 6px 12px; border: none; background: none; border-radius: 5px; cursor: pointer; }
.bd-sort-b.on { color: var(--ink); background: var(--paper); box-shadow: var(--sh-1); }
.bd-search { display: flex; flex: 1; min-width: 140px; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; background: #fffdf8; }
.bd-search input { flex: 1; border: none; background: none; padding: 7px 12px; font-family: var(--font); font-size: 13.5px; color: var(--ink); outline: none; }
.bd-search button { border: none; background: none; padding: 0 12px; cursor: pointer; font-size: 14px; }

/* best strip (인기글) */
.bd-best { display: flex; flex-direction: column; gap: 6px; }
.bd-best-row { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(176,130,26,0.07), var(--paper)); border: 1px solid var(--line-gold); border-radius: 11px; padding: 11px 15px; color: inherit; transition: transform .15s; }
.bd-best-row:hover { transform: translateY(-1px); }
.bd-best-t { flex: 1; font-weight: 750; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-best-m { font-size: 11.5px; color: var(--ink-2); font-weight: 700; white-space: nowrap; }

/* list rows */
/* dense list-style board (한국 커뮤니티 게시판 스타일 + 웜럭스 accent) */
.bd-list { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-1); }
/* 고급화(2026-07-20): 행을 [아바타 | 본문] 2단으로. 아바타가 목록에 시각적 리듬을 만들고,
   좌측 액센트 바로 hover 를 표현해 '납작한 표' 느낌을 없앤다. */
.bd-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px 15px; border-top: 1px solid var(--line);
  color: inherit; position: relative; transition: background .14s ease; }
.bd-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: transparent; transition: background .14s ease; }
.bd-row:hover::before { background: var(--gold); }
.bd-row:active { background: var(--paper-2); }
.bd-row.hot-row { background: linear-gradient(100deg, rgba(207,106,26,.05), var(--paper) 55%); }
.bd-row.official-row::before { background: rgba(15,138,85,.5); }
.bd-row:first-child { border-top: none; }
.bd-row:hover { background: var(--paper-2); }
.bd-row-body { flex: 1; min-width: 0; display: block; }
.bd-row-main { display: flex; align-items: center; gap: 7px; min-width: 0; }
/* 작성자 아바타 — 닉 해시 색상(--avh)로 항상 같은 색. 운영자는 전용 초록. */
.bd-av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 14px; font-weight: 850; line-height: 1;
  color: hsl(var(--avh, 40) 55% 32%); background: hsl(var(--avh, 40) 62% 92%);
  border: 1px solid hsl(var(--avh, 40) 45% 84%); user-select: none; }
.bd-av-off { color: #0f8a55; background: rgba(15,138,85,.12); border-color: rgba(15,138,85,.3); font-size: 15px; }
.bd-t { flex: 1 1 auto; min-width: 0; font-weight: 750; font-size: 14.5px; letter-spacing: -.01em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-c { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--blue); }
.bd-m { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.bd-m .bd-nick { color: var(--ink-2); font-weight: 750; }
.bd-m .bd-dot { color: var(--line-2); }
.bd-m span { white-space: nowrap; }

/* category tag */
.bd-cat { flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.bd-cat-pick { background: rgba(207,154,36,0.16); color: var(--gold); }
.bd-cat-analysis { background: rgba(47,107,208,0.13); color: var(--blue); }
.bd-cat-free { background: var(--paper-2); color: var(--ink-2); }
.bd-cat-cheer { background: rgba(18,144,90,0.13); color: var(--green); }
.bd-cat-qna { background: rgba(124,77,219,0.13); color: var(--purple); }
.bd-hot { font-size: 9.5px; font-weight: 900; color: #fff; background: linear-gradient(135deg,#e0604c,#c8452f); padding: 2px 6px; border-radius: 5px; letter-spacing: 0.03em; vertical-align: 1px; }

/* pager */
.bd-pager { display: flex; justify-content: center; gap: 5px; margin-top: 16px; }
.bd-page { min-width: 34px; height: 34px; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; font-weight: 750; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.bd-page.on { color: #2a2008; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; }

/* post detail: like/delete actions */
/* 글 상세 — 읽기 경험 고급화(2026-07-20): 제목 위계 강화, 작성자 줄을 아바타 기준으로 정렬,
   본문은 줄길이·행간을 읽기 편한 값으로. */
#bdVTitle { font-size: 22px !important; font-weight: 850; letter-spacing: -.02em; line-height: 1.4; margin: 2px 0 10px !important; }
#bdVMeta { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
#bdVMeta .bdv-who { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink); }
#bdVMeta .bdv-sub { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
#bdVBody { font-size: 15.5px !important; line-height: 1.85 !important; color: var(--ink); max-width: 62em; padding-top: 16px; }
.bd-actions { display: flex; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.bd-like { font-family: var(--font); font-size: 13.5px; font-weight: 800; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 20px; cursor: pointer; transition: all .15s; }
.bd-like:hover { border-color: var(--line-gold); }
.bd-like.on { color: var(--gold); background: var(--gold-soft); border-color: var(--line-gold); }
.bd-like b { font-family: var(--mono); }
.bd-del { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: none; border: 1px solid var(--line); border-radius: 11px; padding: 10px 16px; cursor: pointer; }
.bd-del:hover { color: var(--red); border-color: var(--red); }

/* comments */
.bd-cmts { display: flex; flex-direction: column; gap: 12px; }
.bd-cmt { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.bd-cmt:last-child { border-bottom: none; padding-bottom: 0; }
.bd-cmt-h { display: flex; align-items: center; gap: 7px; }
.bd-cmt-h b { font-size: 12.5px; color: var(--ink); font-weight: 800; }
.bd-cmt-t { font-size: 11px; color: var(--ink-3); margin-left: auto; }
/* 댓글 아바타는 목록보다 한 단계 작게 — 위계를 만든다 */
.bd-cmt .bd-av { flex: 0 0 26px; width: 26px; height: 26px; font-size: 11.5px; }
.bd-cmt-b { font-size: 14px; color: var(--ink); margin: 5px 0 6px; white-space: pre-wrap; line-height: 1.65; padding-left: 33px; }
.bd-cmt.reply .bd-cmt-b { padding-left: 33px; }
.bd-cmt-a { padding-left: 33px; }
.bd-cmt-a { display: flex; gap: 8px; }
.bd-clike { font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.bd-clike.on { color: var(--gold); border-color: var(--line-gold); background: var(--gold-soft); }
.bd-cdel { font-size: 11.5px; color: var(--ink-3); background: none; border: none; cursor: pointer; }
.bd-cdel:hover { color: var(--red); }

/* write: category picker */
.bd-catpick { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.bd-cat-opt { font-size: 12.5px; font-weight: 750; color: var(--ink-2); padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; }
.bd-cat-opt.on { color: #2a2008; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; }
.bd-crep, .bd-crepl { font-size: 11.5px; color: var(--ink-3); background: none; border: none; cursor: pointer; font-weight: 700; }
.bd-crep:hover { color: var(--red); }
.bd-crepl:hover { color: var(--blue); }

/* post list: pinned notice + body preview */
.bd-row.pinned { background: rgba(176,130,26,0.07); }
.bd-row.pinned:hover { background: rgba(176,130,26,0.12); }
.bd-pin { flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; background: rgba(200,69,47,0.14); color: var(--red); white-space: nowrap; }
.bd-prev { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* nested replies + BEST comment */
.bd-cmt.reply { margin-left: 18px; padding-left: 12px; border-left: 2px solid var(--line-2); border-bottom: none; padding-bottom: 4px; }
.bd-re { color: var(--ink-3); font-weight: 800; margin-right: 2px; }
.bd-cmt.best { background: linear-gradient(135deg, rgba(176,130,26,0.07), transparent); border-radius: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.bd-cbest { font-size: 10px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--gold-2), var(--gold)); padding: 2px 6px; border-radius: 4px; margin-right: 5px; }
.bd-reply-box { display: flex; gap: 6px; margin-top: 8px; }
.bd-reply-box input { flex: 1; font-family: var(--font); font-size: 13.5px; color: var(--ink); padding: 8px 12px; border-radius: 7px; border: 1px solid var(--line-2); background: #fffdf8; outline: none; }

/* comment sort toggle */
.bd-csort { margin-left: auto; display: inline-flex; gap: 2px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.bd-cs { font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 4px 10px; border: none; background: none; border-radius: 5px; cursor: pointer; }
.bd-cs.on { color: var(--ink); background: var(--paper); box-shadow: var(--sh-1); }
.dimx { color: var(--ink-3); font-size: 11px; }

/* ---------- member level badge ---------- */
.lvl { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; padding: 1px 7px 1px 5px; border-radius: 5px; margin-right: 5px; vertical-align: 1px; white-space: nowrap; border: 1px solid transparent; }
.lvl-t { font-size: 10px; }
.lvl-1 { background: rgba(120,130,110,0.14); color: #6f7d63; }
.lvl-2 { background: rgba(47,107,208,0.12); color: var(--blue); }
.lvl-3 { background: rgba(200,69,47,0.13); color: var(--red); }
.lvl-4 { background: rgba(124,77,219,0.14); color: var(--purple); }
.lvl-5 { background: linear-gradient(135deg, rgba(240,207,107,0.3), rgba(207,154,36,0.22)); color: var(--gold); border-color: var(--line-gold); }
.lvl-official { background: rgba(15,138,85,0.13); color: #0f8a55; border-color: rgba(15,138,85,0.32); }
@media (max-width: 520px) { .lvl-t { display: none; } .lvl { padding: 1px 5px; } }

/* ---------- activity ranking bar (명예의 전당) ---------- */
.bd-rankbar { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(176,130,26,0.08), var(--paper)); border: 1px solid var(--line-gold); border-radius: 12px; padding: 10px 15px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.bd-rankbar::-webkit-scrollbar { display: none; }
.bd-rank-h { flex: 0 0 auto; font-size: 12.5px; font-weight: 850; color: var(--gold); }
.bd-rank-list { display: flex; gap: 14px; }
.bd-rank-i { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 750; color: var(--ink); white-space: nowrap; }
.bd-rank-n { font-family: var(--mono); font-weight: 900; color: var(--ink-3); font-size: 11px; }
.bd-rank-i:nth-child(1) .bd-rank-n { color: var(--gold); }

/* ---------- 예측 대결 (Predict vs AI) ---------- */
.pb-widget { border: 1px solid var(--line-gold); }
.pb-picks { display: flex; gap: 8px; }
.pb-pick { flex: 1; font-family: var(--font); font-size: 14px; font-weight: 800; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 8px; cursor: pointer; transition: all .14s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-pick:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.pb-pick.on { color: #2a2008; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; box-shadow: var(--sh-gold); }
.pb-pick:disabled { opacity: .5; cursor: default; }
.pb-draw { flex: 0 0 64px; }
.pb-bar { margin-top: 12px; }
.pbb { display: flex; height: 12px; border-radius: 5px; overflow: hidden; background: rgba(92,79,52,0.1); }
.pbb-seg { height: 100%; }
.pbb-h { background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.pbb-d { background: var(--ink-3); }
.pbb-a { background: linear-gradient(90deg, #e08a7a, var(--red)); }
.pbb-lab { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.pbb-total { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; } .pbb-total b { color: var(--gold); }
.pb-msg { font-size: 12px; color: var(--ink-3); font-weight: 700; margin-top: 8px; text-align: center; }

/* predict hub list */
.pb-list { display: flex; flex-direction: column; gap: 10px; }
.pb-row { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--sh-1); }
.pb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.pb-lg { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.pb-ai { margin-left: auto; font-size: 11.5px; color: var(--ink-2); font-weight: 700; background: var(--gold-soft); border: 1px solid var(--line-gold); padding: 3px 9px; border-radius: 5px; }
.pb-ai b { color: var(--gold); }
.pb-vs { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; font-weight: 850; color: var(--ink); margin-bottom: 11px; text-align: center; }
.pb-vs i { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.pb-mine { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--gold-soft); border: 1px solid var(--line-gold); border-radius: var(--r-sm); padding: 12px 15px; }
.pb-airow { background: rgba(176,130,26,0.06); } .pb-airow .tm { color: var(--gold); font-weight: 850; }

/* ---------- ads (kakao adfit) ---------- */
/* 광고 자리를 광고 규격(300px)에 맞춘다. 컨테이너가 900px인데 광고가 300px면
   양옆이 비어 레이아웃이 깨져 보인다(PC에서 특히). */
.adfit { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 10px auto; min-height: 0;
  max-width: 300px; }
.adfit ins { max-width: 100%; }
/* 광고가 채워졌을 때만 보이는 구분 라벨 — 콘텐츠와 광고를 시각적으로 분리한다 */
.adfit-lbl { display: none; align-self: stretch; text-align: center; font-size: 9.5px; font-weight: 800;
  letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.adfit-lbl::before, .adfit-lbl::after { content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--line-2); vertical-align: middle; margin: 0 7px; }
.adfit.on .adfit-lbl { display: block; }

/* ---------- premium gate (server-side) ---------- */
.prem-gate { border: 1px solid var(--line-gold); background: linear-gradient(158deg, #fefcf6 0%, #f4ecd9 100%); }
.prem-lock { text-align: center; padding: 14px 10px 6px; }
.prem-lock-ic { font-size: 34px; }
.prem-lock-t { font-size: 15.5px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.prem-lock-s { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }
[data-theme="dark"] .prem-gate { background: linear-gradient(158deg, #262013, #1c160d); }

/* ---------- premium page ---------- */
.prem-hero { text-align: center; border: 1px solid var(--line-gold); background: radial-gradient(120% 140% at 50% 0%, #2c2415 0%, #17120b 100%); color: var(--ink-inv); }
.prem-hero-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--gold-2); background: rgba(216,178,78,0.12); border: 1px solid rgba(216,178,78,0.3); padding: 4px 12px; border-radius: 999px; }
.prem-hero-num { font-family: var(--mono); font-size: 64px; font-weight: 900; color: #57d6a0; line-height: 1.05; margin-top: 8px; }
.prem-hero-num span { font-size: 30px; }
.prem-hero-cap { font-size: 12.5px; color: rgba(243,234,212,0.7); }
.prem-hero-note { font-size: 12.5px; color: rgba(243,234,212,0.85); max-width: 520px; margin: 12px auto 0; line-height: 1.7; }
.prem-hero-note a { color: var(--gold-2); font-weight: 700; }
.prem-perks { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.prem-perk { display: flex; gap: 11px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.prem-perk .ic { font-size: 22px; flex: 0 0 auto; }
.prem-perk b { display: block; font-size: 14px; color: var(--ink); }
.prem-perk span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.prem-price { text-align: center; border: 1px solid var(--line-gold); }
.prem-price-name { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.prem-price-amt { font-family: var(--mono); font-size: 40px; font-weight: 900; color: var(--ink); margin: 4px 0; }
.prem-price-amt span { font-size: 16px; color: var(--ink-3); }
.prem-price-sub { font-size: 11.5px; color: var(--ink-3); }
.prem-price-note { font-size: 11.5px; color: var(--ink-2); margin: 12px 0 0; line-height: 1.6; }
@media (max-width: 560px) { .prem-perks { grid-template-columns: 1fr; } }

/* ---------- 삼자 분석 (AI · 시장 · 대중) ---------- */
.cons { border: 1px solid var(--line-gold); }
.cons-row { display: grid; grid-template-columns: 52px 1fr 84px; align-items: center; gap: 10px; margin-bottom: 9px; }
.cons-l { font-size: 12.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.cons-bar { position: relative; height: 14px; border-radius: 5px; background: rgba(92,79,52,0.10); overflow: hidden; }
.cons-fill { height: 100%; border-radius: 5px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.cons-fill.ai { background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.cons-fill.mk { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.cons-fill.cw { background: linear-gradient(90deg, #57d6a0, var(--green)); }
.cons-v { font-family: var(--mono); font-size: 13px; font-weight: 800; color: var(--ink); text-align: right; }
.cons-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); font-weight: 700; padding: 0 84px 0 52px; margin-top: -2px; }
.cons-odds { font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-top: 8px; }

/* ---------- market odds ---------- */
.odds-row { display: flex; gap: 8px; }
.odds-cell { flex: 1; text-align: center; padding: 12px 6px; border-radius: 11px; background: var(--paper-2); border: 1px solid var(--line); }
.odds-cell.fav { border-color: var(--line-gold); background: var(--gold-soft); }
.odds-cell .ol { font-size: 12px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odds-cell .ov { font-family: var(--mono); font-size: 20px; font-weight: 900; color: var(--ink); margin-top: 3px; }
.odds-cell.fav .ov { color: var(--gold); }

/* ---------- footer ---------- */
footer { text-align: center; color: var(--ink-3); font-size: 12px; padding: 28px 20px 40px; border-top: 1px solid var(--line); margin-top: 12px; }
.foot-brand { font-family: var(--mono); font-size: 18px; font-weight: 900; color: var(--ink-2); margin-bottom: 10px; }
.foot-brand b { color: var(--gold); }
footer .fl { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-weight: 700; margin-bottom: 8px; }
footer a { color: var(--ink-2); }
footer .legal { max-width: 640px; margin: 0 auto 10px; font-size: 11px; line-height: 1.65; color: var(--ink-3); }
footer .legal b { color: var(--ink-2); font-weight: 700; }
.empty { text-align: center; color: var(--ink-2); font-size: 13px; padding: 44px 20px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-md); }

/* ---------- motion ---------- */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes arc { from { stroke-dashoffset: 110; } }
@keyframes countin { from { opacity: 0; transform: translateY(6px); } }
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .g2, .g3, .tiles { grid-template-columns: 1fr 1fr; }
  .g2.stack-m { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 54px 1fr auto; gap: 8px; padding: 12px 10px; }
  .mleague { max-width: 54px; }
  .tava { flex-basis: 26px; width: 26px; height: 26px; font-size: 11px; }
  .mteam { gap: 6px; } .mteam .nm { font-size: 13px; }
  .mscore { gap: 5px; } .mscore .sc { font-size: 15.5px; }
  .verdict { grid-template-columns: 1fr; text-align: center; } .gauge { margin: 0 auto; }
  .hscore { font-size: 28px; } .hteam .nm { font-size: 14.5px; }
  .spot { padding: 16px 16px 15px; }
  .spot-body { grid-template-columns: 1fr; gap: 9px; margin-top: 10px; } .spot-num { text-align: left; padding-left: 0; } .spot-num .n { font-size: 34px; }
  .spot-match { font-size: 19px; margin: 3px 0 6px; } .spot-pick { font-size: 13px; }
  .spot-tag { font-size: 10px; }
  .auth { grid-template-columns: 1fr; min-height: 0; } .auth-story { padding: 26px 22px; } .auth-form { padding: 26px 22px; }
  .tr-num { font-size: 52px; } .tr-row { grid-template-columns: 66px 1fr auto; gap: 8px; }
  .ph h1 { font-size: 22px; }
  /* nav: brand + 계정 CTA는 1행, 메뉴 링크는 전폭 2행으로 분리. 한 줄에 다 넣으면 좁은 폭에서
     링크가 서로 눌려 글자가 세로로 구겨진다. */
  .nav-in { flex-wrap: wrap; padding: 7px 12px 0; row-gap: 0; }
  .brand { font-size: 19px; }
  .nav-right { margin-left: auto; gap: 2px; min-width: 0; }
  /* 로그인 시 이 자리에 닉네임("○○○님")이 들어가므로 폭을 제한해 줄바꿈 대신 말줄임 */
  .nav-right .nlink.login { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
  .nav-links { order: 3; flex-basis: 100%; margin: 6px 0 0; gap: 2px; justify-content: space-between;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-top: 1px solid var(--line); padding: 3px 0 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nlink { padding: 7px 8px; font-size: 13px; white-space: nowrap; flex: none; }
  .njoin { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
  .theme-btn { padding: 6px 5px; }
}
@media (max-width: 380px) {
  .brand { font-size: 17.5px; }
  .nlink { padding: 7px 6px; font-size: 12.5px; } .njoin { padding: 7px 10px; font-size: 12.5px; }
}
@media (max-width: 560px) {
  /* session's new cards: tighten on narrow screens (safe direction — smaller/denser only) */
  .trust-hero, .tproof { gap: 9px; padding: 11px 13px; }
  .th-badge { font-size: 10px; padding: 6px 9px; } .th-hl { font-size: 12.5px; }
  .th-cta, .tproof-cta { font-size: 11px; }
  /* 좁은 화면: 대표(프리미엄)는 전폭 1행, 나머지 2장이 2열 → 빈칸 없이 딱 떨어진다 */
  .tieracc { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ta-hero { grid-column: 1 / -1; }
  .tacard { padding: 10px 11px; }
  .ta-val { font-size: 24px; }
  .ta-lbl { font-size: 11px; } .ta-sub { font-size: 10.5px; }
  .ta-live { grid-column: 1 / -1; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px; }
  .ta-live .ta-sub { margin-left: auto; }
  .tieracc-note { font-size: 10.5px; }
  .sp-vs { gap: 6px; } .sp-name { font-size: 14px; } .sp-stats { gap: 3px 8px; font-size: 11px; }
  .kp-lbl { min-width: 50px; } .kp { font-size: 12.5px; }
  .cmprow-h { font-size: 10.5px; } .fb { width: 17px; height: 17px; font-size: 10px; }
}
@media (min-width: 720px) { .tr-hero { grid-template-columns: 1.35fr 1fr; } }
@media (prefers-reduced-motion: reduce) { *, .gauge-arc, .brand-dot { animation: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ============================================================================
   Dark mode — warm-luxe dark. Toggled by [data-theme="dark"] on <html>.
   ========================================================================== */
:root[data-theme="dark"] {
  --bg-1: #17130d; --bg-2: #0f0c08; --paper: #211b12; --paper-2: #2b2417;
  --ink: #ede4d0; --ink-2: #b3a88f; --ink-3: #837860; --ink-inv: #f3ead4;
  --line: rgba(237,228,208,0.09); --line-2: rgba(237,228,208,0.17); --line-gold: rgba(216,178,78,0.32);
  --gold: #d8b24e; --gold-soft: rgba(216,178,78,0.12);
  --blue: #6fa0e8; --blue-2: #8db6f0;
  --sh-1: 0 2px 8px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.3);
  --sh-2: 0 4px 14px rgba(0,0,0,0.35), 0 18px 44px rgba(0,0,0,0.45);
  --sh-gold: 0 10px 30px rgba(216,178,78,0.15);
}
[data-theme="dark"] body { background:
  radial-gradient(1100px 520px at 50% -10%, rgba(216,178,78,0.06), transparent 60%),
  linear-gradient(172deg, var(--bg-1) 0%, var(--bg-2) 100%); background-attachment: fixed; }
[data-theme="dark"] .nav { background: linear-gradient(180deg, rgba(23,19,13,0.94), rgba(23,19,13,0.78)); }
[data-theme="dark"] .njoin, [data-theme="dark"] .btn-primary, [data-theme="dark"] .spot-cta,
[data-theme="dark"] .gate-cta, [data-theme="dark"] .day-chip.on { color: #241c07; }
[data-theme="dark"] .hero { background: linear-gradient(158deg, #262013 0%, #1c160d 100%); }
[data-theme="dark"] .wpcard { background: linear-gradient(162deg, #241e12, #1c160d); }
[data-theme="dark"] .tr-big { background: linear-gradient(158deg, #262013, #1c160d); }
[data-theme="dark"] .verdict { background: linear-gradient(135deg, rgba(216,178,78,0.10), rgba(33,27,18,0.5)); }
[data-theme="dark"] .field input, [data-theme="dark"] .chat-in input, [data-theme="dark"] textarea { background: #1a1510 !important; color: var(--ink) !important; }
[data-theme="dark"] .chat-msgs { background: linear-gradient(180deg, var(--paper), #1c160d); }
[data-theme="dark"] .gauge text, [data-theme="dark"] .iscore td { fill: #ede4d0; }
[data-theme="dark"] .gauge svg text { fill: #ede4d0; }
[data-theme="dark"] .t-general { background: rgba(111,160,232,0.15); color: #6fa0e8; border-color: rgba(111,160,232,0.32); }
[data-theme="dark"] .t-lean { background: transparent; }
[data-theme="dark"] ::selection { background: rgba(216,178,78,0.35); }
.theme-btn { border: none; background: none; font-size: 16px; cursor: pointer; padding: 6px 8px; border-radius: 10px; margin-left: 2px; }
.theme-btn:hover { background: rgba(128,116,92,0.14); }

/* ---- viral share layer ---- */
.scx-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #1c1712; color: #f3ecdc; font-weight: 800; font-size: 13.5px; padding: 12px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.32); z-index: 9999; opacity: 0; transition: opacity .28s, transform .28s; pointer-events: none; border: 1px solid rgba(216,178,78,0.4); }
.scx-toast.in { opacity: 1; transform: translate(-50%, 0); }
.btn-share { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-gold, rgba(216,178,78,0.5)); background: var(--gold-soft, rgba(216,178,78,0.12)); color: var(--gold, #b0821c); font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 11px; cursor: pointer; transition: transform .14s, background .14s; font-family: inherit; }
.btn-share:hover { transform: translateY(-1px); background: rgba(216,178,78,0.2); }
.btn-share:active { transform: translateY(0); }

/* ── 커뮤니티 빈 상태 ─────────────────────────────────────────────
   글이 0개인 지금 가장 많이 노출되는 화면. 한 줄짜리 '없습니다'는 죽은 인상을 준다. */
.bd-empty { padding: 30px 18px 26px; text-align: center; }
.bd-empty-t { font-size: 16.5px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.bd-empty-s { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); font-weight: 600; }
.bd-seeds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; text-align: left; }
.bd-seed { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.bd-seed:hover { border-color: var(--line-gold); transform: translateY(-2px); box-shadow: var(--sh-1); }
.bd-seed-ic { flex: none; font-size: 20px; }
.bd-seed-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd-seed-b b { font-size: 13px; font-weight: 850; color: var(--ink); }
.bd-seed-b i { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 600; line-height: 1.35; }
@media (max-width: 560px) { .bd-seeds { grid-template-columns: 1fr; } .bd-empty { padding: 24px 12px 20px; } }
