/* 타석 화면 (docs/pa-prediction-redesign.md §4 보드 2).
   색·간격·크기는 확정 목업에서 그대로 옮겼다. 폭 390px 기준. */

:root {
  --bg: #faf8f4;
  --ink: #1a1a18;
  --ink-2: #2a2a26;
  --ink-3: #3a3833;
  --ink-4: #4a473f;
  --mute: #6f6a62;
  --mute-2: #7a756c;
  --mute-3: #918b81;
  --mute-4: #a29c91;
  --faint: #b3aca1;
  --card: #ffffff;
  --line: #e6e1d8;
  --line-2: #ede9e1;
  --rail: #eae5dc;
  --rail-2: #efeae1;
  --chip: #f3f0ea;
  --pan: #f2efe9;
  --pan-line: #e0dacf;
  --dot-off: #dad5cb;
  --orange: #c4671c;
  --orange-dark: #a85410;
  --orange-soft: #ebc9a4;
  --green: #1f8b62;
  --green-dark: #15694a;
  --red: #b0432b;
  --zone-grid: #8a8378;
  --gut: 24px;
  --num: "Barlow Condensed", "IBM Plex Sans KR", sans-serif;
}

* { box-sizing: border-box; }

/* 브라우저 스크롤 앵커링은 끈다 — 보던 자리는 app.js keepView 가 직접 지킨다(둘이 같이 맞추면 두 번 움직인다) */
html { overflow-anchor: none; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  /* 한글은 낱말 단위로 줄바꿈 — 「물러났/다」「지난/공」처럼 가운데서 끊기지 않게(9/26 전수 점검). 긴 토큰은 넘치기 전에 끊는다 */
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

.app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.grow { flex-grow: 1; }
.eyebrow { font-size: 10px; letter-spacing: 0.08em; color: var(--mute-3); }

/* 보고 있는 경기. 날짜 띠가 생기면서 목록이 「다른 경기」가 아니라 「그 날 경기
   전부」가 됐다 — 어느 것을 보고 있는지 표시가 있어야 한다. */
.game-card.on { background: var(--card); border-color: var(--ink-4); }

/* ------------------------------------------------------------------ 날짜 띠 */
.datebar {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 10px 2px 10px;
}
.datebar-nav {
  flex-shrink: 0; width: 28px; height: 40px; border: none; background: none;
  font-size: 24px; line-height: 1; color: var(--mute-2); cursor: pointer; padding: 0;
  font-family: inherit;
}
.datebar-nav:disabled { color: var(--dot-off); cursor: default; }
/* 월 표시. 월이 바뀌는 칸 앞에, 그리고 띠 맨 앞에 선다. 날짜 칸과 같은 높이라
   줄이 흔들리지 않는다. */
.month-mark {
  flex-shrink: 0; align-self: stretch; display: flex; align-items: center;
  padding: 0 6px 0 2px; margin-right: 2px; border-right: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
}
.datebar-row {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.datebar-row::-webkit-scrollbar { display: none; }
.daycell {
  flex-shrink: 0; width: 38px; padding: 5px 0 4px 0; border: 1px solid transparent;
  border-radius: 9px; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: inherit; color: var(--mute);
}
.daycell b { font-family: var(--num); font-size: 17px; font-weight: 600; line-height: 1; color: var(--ink-3); }
.daycell span { font-size: 10px; }
/* 경기가 있는 날에만 점을 찍는다. 없는 날은 자리만 두어 높이가 안 흔들린다. */
.daycell i { width: 4px; height: 4px; border-radius: 50%; background: transparent; display: block; }
.daycell.has i { background: var(--mute-4); }
.daycell.sun b, .daycell.sun span { color: var(--red); }
.daycell.today b { color: var(--orange-dark); }
.daycell.on { background: var(--ink); border-color: var(--ink); }
.daycell.on b, .daycell.on span { color: #fff; }
.daycell.on.has i { background: rgba(255,255,255,0.75); }

/* ------------------------------------------------------- 경기 전 / 경기 없음 */
.landing {
  margin: 26px var(--gut) 10px var(--gut);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
/* display 를 준 요소는 [hidden] 이 안 먹는다(특이도가 같아 뒤에 온 쪽이 이긴다).
   빼먹으면 「경기 전」이 종료 경기 화면 위에 같이 떠 있는다 — 실제로 그랬다. */
.landing[hidden] { display: none; }
.landing-head { font-size: 22px; font-weight: 600; color: var(--ink-2); }
.landing-sub { font-size: 12px; color: var(--mute-2); }
.landing-card {
  margin-top: 16px; width: 100%; padding: 14px 16px 16px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.landing-card[hidden] { display: none; }
.landing-card-top { font-size: 11px; color: var(--mute-2); text-align: center; }
.landing-duel { display: flex; align-items: center; gap: 8px; }
.landing-logo { width: 26px; height: 26px; flex-shrink: 0; }
.landing-side { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.landing-side.right { align-items: flex-end; text-align: right; }
.landing-side b { font-size: 15px; font-weight: 600; color: var(--ink); }
.landing-side span { font-size: 11px; color: var(--mute); }
.landing-mid {
  font-family: var(--num); font-size: 15px; font-weight: 600;
  color: var(--mute-3); flex-shrink: 0; text-align: center; min-width: 46px;
}
.landing-note[hidden] { display: none; }
.landing-note { margin-top: 14px; font-size: 11px; color: var(--mute-3); }
#live-block[hidden] { display: none; }

/* ------------------------------------------------------------- 경기 고르기 */
.topbar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px var(--gut) 10px var(--gut);
}
.topbar h1 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.status { flex-grow: 1; font-size: 10px; color: var(--mute-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status.live { color: var(--green); }
.status.down { color: var(--red); }
.btn-ghost {
  flex-shrink: 0;
  padding: 4px 9px;
  font: inherit;
  font-size: 11px;
  color: var(--mute);
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

/* ‹ › 는 바깥 여백(24px) 안에 세운다. 행 안에 넣으면 카드가 65px 로 줄어 구단명이
   「한..」로 잘린다(2026-09-22 실측). 20px 버튼 + 2px 여백이면 카드 폭이 그대로다. */
.other-games { padding: 4px 2px 12px 2px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 2px; }
.other-games .datebar-nav { width: 20px; }
.other-games-row { flex-grow: 1; min-width: 0; }
.other-games[hidden] { display: none; }
.other-games-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.other-games-row::-webkit-scrollbar { display: none; }
/* 폭이 얼마든 넷은 들어간다. 80px 로 고정했더니 좁은 기기에서 마지막 카드가 잘렸다.
   넷보다 많으면(5경기 날) 다섯째가 **한 조각 비치게** 4.4 로 나눈다 — 스크롤바를
   숨겨 둔 줄이라 조각이 안 보이면 더 있다는 걸 알 길이 없다(2026-09-22 실측). */
.game-card {
  flex: 0 0 calc((100% - 22px) / 4.4); min-width: 0; padding: 9px 6px;
  background: var(--chip); border: 1px solid var(--line); border-radius: 9px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  font: inherit; cursor: pointer; text-align: left;
}
.game-card .gc-when { font-size: 10px; font-weight: 600; color: var(--mute-2); }
.game-card .gc-row { display: flex; align-items: center; gap: 3px; width: 100%; }  /* SSG 10 이 2px 넘쳤다 */
.game-card .gc-row img { width: 15px; height: 15px; flex-shrink: 0; }
.game-card .gc-row b {
  font-size: 11px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.game-card .gc-row span.sc { font-family: var(--num); font-size: 14px; font-weight: 700; color: var(--ink); }
.game-card .gc-row.lose b, .game-card .gc-row.lose span.sc { color: var(--mute); font-weight: 500; }
.game-card .gc-row.lose span.sc { font-weight: 700; }

/* ---------------------------------------------------------- 투수 VS 타자 */
.versus { padding: 14px var(--gut) 12px var(--gut); display: flex; align-items: center; gap: 10px; }
img[hidden] { display: none; }
.face { width: 48px; height: 60px; border-radius: 7px; background: #f1ede5; flex-shrink: 0; object-fit: cover; }
/* 사진이 없을 때 그 자리에 놓는 등번호. `.face` 와 같은 크기라 줄이 안 밀린다. */
.face-num { display: flex; align-items: center; justify-content: center;
  font-family: var(--num); font-size: 22px; font-weight: 700; color: var(--mute-4); }
.face-num[hidden] { display: none; }   /* display:flex 가 [hidden] 기본값을 덮는다 */
.who { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.who.right { align-items: flex-end; text-align: right; }
.who-eyebrow { font-size: 10px; letter-spacing: 0.08em; color: var(--mute-2); }
.who-name { font-size: 19px; font-weight: 600; line-height: 1.2; }
.who-meta { font-size: 11px; color: var(--mute); }
.vs { font-family: var(--num); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: var(--mute-4); flex-shrink: 0; }

.scoreline {
  margin: 16px var(--gut) 0 var(--gut);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 7px;
}
/* 구단 이름 둘이 들어와 한 줄이 빡빡하다. 로고와 이름은 한 덩어리로 읽히게
   음수 여백으로 붙이고, 나머지 간격만 7px 로 둔다. */
.scoreline > * { flex-shrink: 0; }
.team-logo { width: 17px; height: 17px; flex-shrink: 0; }
.team-name { font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.team-name.pitch { margin-left: -3px; }
.team-name.bat { margin-right: -3px; }
.score { font-family: var(--num); font-size: 24px; font-weight: 700; line-height: 1; }
.score-dash { width: 7px; height: 2px; background: #c9c3b8; }
.inning { font-size: 12px; font-weight: 600; color: var(--ink); }
.runners { font-size: 11px; color: var(--mute); }
.count { display: flex; align-items: center; gap: 4px; }
.count-key { font-size: 10px; color: var(--mute-2); }
.count-key.s { margin-left: 4px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot-off); display: block; }
.dots i.on-b { background: var(--green); }
.dots i.on-s { background: var(--orange); }

/* ------------------------------------------------------ ① 출루 % 헤드라인 */
.headline {
  margin: 20px var(--gut) 0 var(--gut);
  padding: 20px 20px 18px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; gap: 16px;
}
.headline[hidden] { display: none; }  /* 서비스에선 숨김(PM 9/26), ?reach=1 로 켠다 */
.headline-top { display: flex; align-items: baseline; gap: 10px; }
.tag { font-size: 12px; letter-spacing: 0.14em; color: var(--orange-dark); font-weight: 600; }
.tag-sub { font-size: 11px; color: var(--mute-2); }
.reach-word { font-size: 20px; font-weight: 600; color: var(--ink-3); }
.reach {
  font-family: var(--num); font-size: 64px; font-weight: 700;
  line-height: 0.85; color: var(--orange); letter-spacing: -0.01em;
}
.reach u { text-decoration: none; font-size: 32px; font-weight: 600; }
.edge-word { font-size: 13px; font-weight: 600; color: var(--mute); }
.edge-word:empty { display: none; }
.edge-word.batter { color: var(--green); }
.edge-word.pitcher { color: var(--red); }
/* 코멘트 한 줄. 라벨 글자 대신 이모지(PM). 예측이 아닌 설명(희생플라이 상황)은 점선·옅게. */
.note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  background: var(--chip); font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.note:empty { display: none; }
.note i { font-style: normal; font-size: 17px; line-height: 1.1; }
.note em { font-style: normal; font-weight: 700; }
.note.bunt em { color: var(--red); }
.note.walk em { color: var(--green); }
.note.info { background: none; border: 1px dashed var(--line); color: var(--mute); }
/* 볼카운트 12칸 — 폭은 부모를 따라간다(고정 px 없음). 지금 칸만 진하게 + 「지금」 배지, 50% 넘는 칸은 초록. */
.ladder-block { display: flex; flex-direction: column; gap: 6px; }
.ladder-block.off { display: none; }
.ladder-title { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ladder-legend { font-size: 11px; color: var(--mute-3); }
.ladder-legend span { color: var(--green); font-weight: 600; }
.ladder { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 3px; }
.ladder .axis { grid-column: 2 / 5; text-align: center; font-size: 11px; color: var(--mute-2); letter-spacing: 0.04em; }
.ladder .hd { font-size: 11px; color: var(--mute-3); text-align: center; padding: 2px 4px; }
.ladder .hd.row { text-align: right; padding-right: 6px; align-self: center; white-space: nowrap; }
.ladder .c {
  position: relative; font-family: var(--num); font-size: 16px; font-weight: 500; text-align: center;
  padding: 5px 0; border-radius: 6px; background: var(--chip); color: var(--ink-4);
}
.ladder .c u { text-decoration: none; font-size: 11px; }
.ladder .c.hi { color: var(--green); font-weight: 600; }
.ladder .c.cur { background: var(--ink); color: #fff; font-weight: 700; }
.ladder .c.cur.hi { background: var(--green); }
.ladder .c.cur::after {
  content: "지금"; position: absolute; top: -8px; right: 4px; font: 600 9px var(--sans, sans-serif);
  background: var(--orange-dark); color: #fff; border-radius: 6px; padding: 1px 4px;
}
.gauge-wrap { display: flex; flex-direction: column; gap: 7px; }
.gauge { position: relative; height: 14px; background: var(--rail); border-radius: 7px; }
.gauge-fill {
  position: absolute; left: 0; top: 0; height: 14px; width: 0;
  background: linear-gradient(90deg, var(--orange-soft) 0%, var(--orange) 100%);
  border-radius: 7px;
}
.tick { position: absolute; top: -5px; width: 3px; height: 24px; border-radius: 1px; }
.tick.today { background: var(--green); }
.tick.h2h { background: var(--ink-4); }
.tick.pa { background: var(--orange); }
.gauge-labels { position: relative; height: 36px; }
.gauge-labels div { position: absolute; top: 0; font-size: 12px; line-height: 1.25; white-space: nowrap; }
.gauge-labels div.today { color: var(--green); }
.gauge-labels div.h2h { color: var(--ink-4); }
.gauge-labels div.pa { color: var(--orange-dark); }
.gauge-labels em { font-style: normal; font-family: var(--num); font-size: 17px; font-weight: 600; }
/* `ref` = 예측에 반영되지 않은 기록(지금은 상대 전적 하나). 값은 그대로 %로 두고
   무게만 낮춘다. 예측과 같은 크기로 같은 막대에 놓여 있어서 경쟁 예측으로 읽혔다
   — 2026-09-22에 PM이 "전적이 좋은데 왜 아웃이냐"고 물었다. */
.tick.ref { top: -1px; width: 2px; height: 16px; opacity: 0.5; }
.gauge-labels div.ref { opacity: 0.72; }
.gauge-labels div.ref em { font-size: 13px; font-weight: 500; }

/* --------------------------------------------------------------- 블록 머리 */
.block-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 8px; }
.block-title { font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.block-note { font-size: 11px; color: var(--mute-2); }
.block-figure { font-family: var(--num); font-size: 18px; font-weight: 700; color: var(--ink); }

/* -------------------------------------------------------------- ② 적중 띠 */
.strip-block { margin: 18px var(--gut) 0 var(--gut); display: flex; flex-direction: column; }
/* 칸을 행 단위로 넣는 진짜 grid 다. 행 높이는 그 행에서 가장 큰 칸이 정하고
   나머지가 늘어나 맞춰진다 — 폰트 크기가 달라도 어긋나지 않는다. */
.strip {
  display: grid; gap: 0 4px;
  /* 네 행을 같은 높이로. 알약이 든 행은 알약 패딩만큼 2px 씩 더 높아져서
     줄 간격이 벌어져 보였다. 1fr 은 고정 px 이 아니라 "가장 큰 행에 맞춰
     나머지도 같게"라는 뜻이라, 글자나 알약 크기를 바꿔도 안 어긋난다. */
  grid-auto-rows: 1fr;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip > span {
  display: flex; align-items: center; justify-content: center;
  padding: 7px 2px; min-width: 0;
  border-bottom: 1px solid var(--line-2);
}
/* 마지막 행(적중결과)에는 아래 선을 안 넣는다. 라벨 칸도 같은 행이므로
   `.out` 이 아니라 `.last` 로 잡는다 — 안 그러면 라벨만 밑줄이 남는다. */
.strip > span.last { border-bottom: 0; }
.strip > span.k {
  justify-content: flex-start; padding-left: 0;
  font-size: 10px; letter-spacing: 0.04em; color: var(--mute-3);
}
.strip .inn { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.strip .pred { font-size: 12px; font-weight: 500; color: var(--orange-dark); }
.strip .res { font-size: 12px; font-weight: 500; color: var(--ink); }
.strip .out { font-size: 12px; font-weight: 600; color: var(--green); }
.strip .out.miss { color: var(--red); }
.strip .none { color: var(--faint); font-weight: 600; }

/* 결과·판정은 알약 버튼으로. 320px 에서 값 열이 48.5px 뿐이라 좌우 패딩을
   6px 로 잡고 글자를 11px 로 줄인다("진행 중"을 "진행"으로 줄인 이유). */
.strip > span > i {
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; line-height: 1;
  padding: 4px 6px; border-radius: 999px;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.strip .res > i { background: var(--chip); color: var(--ink); }
.strip .res.open > i { background: transparent; color: var(--mute-2); box-shadow: inset 0 0 0 1px var(--line); }
.strip .res.onbase > i { background: rgba(31, 139, 98, 0.12); color: var(--green); }
.strip .res.putout > i { background: rgba(176, 67, 43, 0.12); color: var(--red); }
.strip .out > i { background: rgba(31, 139, 98, 0.12); color: var(--green); }
.strip .out.miss > i { background: rgba(176, 67, 43, 0.12); color: var(--red); }
/* 매치포인트 채점 줄 — 타석마다 ○ ✕ (초구·결정구·번트·도루). 칸이 좁아 표시 원을 작게, 넘치면 줄바꿈 */
.strip .mpm { flex-wrap: wrap; gap: 2px; }
.strip .mpm > b { display: inline-flex; font-weight: 400; }
.strip .mpm .mk-ok, .strip .mpm .mk-miss { width: 15px; height: 15px; font-size: 10px; }

/* ------------------------------------------------------------------ ③ 존 */
.zone-block { margin: 14px var(--gut) 0 var(--gut); display: flex; flex-direction: column; gap: 10px; }
.zone-frame { position: relative; width: 100%; padding-bottom: 92.98%; }
.zone-box {
  position: absolute; inset: 0;
  background: var(--pan); border: 1px solid var(--pan-line); border-radius: 12px;
}
.zc {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 19.30%; height: 18.87%;
}
.zc span { font-family: var(--num); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.zc.z10 { left: 6.14%; top: 0; border-radius: 10px 0 8px 0; }
.zc.z11 { right: 6.14%; top: 0; border-radius: 0 10px 0 8px; }
.zc.z12 { left: 6.14%; bottom: 0; border-radius: 0 8px 0 10px; }
.zc.z13 { right: 6.14%; bottom: 0; border-radius: 8px 0 10px 0; }
.zgrid {
  position: absolute; left: 25.44%; top: 20.75%; width: 49.12%; height: 58.49%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 2px;
  border: 2px solid var(--zone-grid); border-radius: 4px; overflow: hidden; background: var(--zone-grid);
}
.zgrid > div { display: flex; align-items: center; justify-content: center; }
.zgrid > div span { font-family: var(--num); font-size: 16px; font-weight: 600; color: var(--ink-2); }
.step1 { background: #9fbfd8; } .step2 { background: #bfd6e8; } .step3 { background: #d8d3c9; }
.step4 { background: #ecaf9c; } .step5 { background: #df8268; }
.step0 { background: #e8e4dc; }
.zdot {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--bg); opacity: 0.85; transform: translate(-50%, -50%); z-index: 1;
}
.zdot.now {
  width: 24px; height: 24px; background: var(--ink-2); opacity: 1;
  border-color: #fff; box-shadow: 0 0 0 2px var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--num); font-size: 13px; font-weight: 700; color: #fff;
}
.zbat { position: absolute; top: 22%; height: 54%; width: 11%; opacity: 0.9; pointer-events: none; }
.zbat.L { left: 8.5%; transform: rotate(-24deg); }
.zbat.R { right: 8.5%; transform: scaleX(-1) rotate(-24deg); }
.zbat svg { width: 100%; height: 100%; display: block; overflow: visible; }
.zone-legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--mute); }
.zone-legend span { display: flex; align-items: center; gap: 5px; }
.zone-legend i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.zone-legend i.past { background: var(--mute-2); }
.zone-legend .cloud-sw { width: 14px; height: 14px; background: radial-gradient(circle, rgba(120,110,100,.45) 0%, rgba(120,110,100,.18) 55%, rgba(120,110,100,0) 75%); }
.zone-legend i.now {
  width: 14px; height: 14px; background: var(--ink-2); color: #fff; box-shadow: 0 0 0 1.5px var(--ink);
  font-family: var(--num); font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-style: normal;
}

/* ---------------------------------------------------------- ④ 구종 비율 */
.mix-block { margin: 16px var(--gut) 0 var(--gut); display: flex; flex-direction: column; gap: 9px; }
.mix-block[hidden] { display: none; }  /* 서비스에선 숨김, ?mix=1 로 켠다 */
.mix { display: flex; flex-direction: column; gap: 9px; }
.mix-row { display: flex; align-items: center; gap: 10px; }
/* 한 줄에 고정 폭은 이름 하나뿐. 막대가 남는 폭을 먹고, 글자는 제 폭을 지킨다.
   170px 로 못 박았더니 320px 화면에서 예측성공률 글자가 넘쳤다. */
.mix-row .name { flex: 0 0 58px; font-size: 12px; font-weight: 500; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.mix-row .name i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
/* 한 레일에 둘을 포갠다 — 같은 왼쪽 기준선, 길이 = 값/100. 짧은 쪽이 위(.top).
   숫자는 레일 오른쪽 밖에서 색으로 가른다. */
.mix-bar { flex: 0 0 32%; min-width: 0; display: flex; }
.mix-bar .rail { position: relative; flex: 1 1 auto; height: 12px; background: var(--rail-2); border-radius: 3px; }
.mix-bar .rail b { position: absolute; left: 0; top: 0; height: 12px; border-radius: 3px; }
.mix-bar b.a { background: var(--green); }
.mix-bar b.p { background: var(--orange); }
.mix-bar b.top { z-index: 1; }
.mix-bar .rail em { position: absolute; left: 100%; top: -1px; margin-left: 5px; font-style: normal;
  font-family: var(--num); font-size: 11px; font-weight: 600; color: var(--mute-3); white-space: nowrap; letter-spacing: -0.01em; }
.mix-bar .rail em i.a { font-style: normal; color: var(--green); }
.mix-bar .rail em i.p { font-style: normal; color: var(--orange-dark); }
.mix-row .succ { flex: 0 0 auto; margin-left: auto; text-align: right; font-size: 12px; font-weight: 500; color: var(--mute); white-space: nowrap; }
.mix-row .succ.on { color: var(--green); }
.mix-row .succ i { font-style: normal; color: var(--ink-3); }
.mix-legend { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--mute); }
.mix-legend span { display: flex; align-items: center; gap: 5px; }
.mix-legend .sw { width: 14px; height: 8px; border-radius: 2px; display: block; }
.mix-legend .sw.green { background: var(--green); }
.mix-legend .sw.orange { background: var(--orange); }

/* --------------------------------------------------------------- ⑤ 투구 */
.pitches-block { margin: 18px var(--gut) 0 var(--gut); display: flex; flex-direction: column; }
.pitch-head, .pitch-row { display: flex; align-items: center; gap: 6px; }
.pitch-head { padding-bottom: 2px; }
.pitch-head span { font-size: 10px; letter-spacing: 0.04em; color: var(--mute-3); }
.pitch-row { padding: 8px 0; border-top: 1px solid var(--line-2); }
.c-n { width: 30px; flex-shrink: 0; text-align: left; }
.c-t { width: 70px; flex-shrink: 0; text-align: left; }
.c-r { width: 64px; flex-shrink: 0; text-align: left; }
.c-b, .c-s { width: 28px; flex-shrink: 0; text-align: center; }
.c-v { flex-grow: 1; text-align: right; }
.pitch-row .c-n { font-family: var(--num); font-size: 13px; font-weight: 600; color: var(--ink); }
.pitch-row .c-t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink); }
.pitch-row .c-t i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pitch-row .c-r { font-size: 12px; font-weight: 600; color: var(--mute); }
.pitch-row .c-r.swing { color: var(--orange-dark); }
.pitch-row .c-b, .pitch-row .c-s { font-family: var(--num); font-size: 13px; font-weight: 500; color: var(--ink); }
.pitch-row .c-v { font-family: var(--num); font-size: 15px; font-weight: 700; color: var(--ink); }
.pitch-row .c-v u { text-decoration: none; font-family: "IBM Plex Sans KR", sans-serif; font-size: 9px; font-weight: 400; color: var(--mute); }
.pitch-row .none { color: var(--faint); font-weight: 500; }

#foot-note { padding: 12px var(--gut) 16px var(--gut); font-size: 10px; color: var(--mute-3); }

/* 좁은 화면(375px 이하)에서도 가로 스크롤이 생기지 않게 */
@media (max-width: 379px) {
  :root { --gut: 16px; }
  .reach { font-size: 54px; }
  .face { width: 42px; height: 53px; }
  .who-name { font-size: 17px; }
}

/* ---------------------------------------------------------------- ⑥ 타석 로그 */
.palog-block { margin: 22px var(--gut) 0 var(--gut); }
.palog-block[hidden] { display: none; }
.palog-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.palog-tabs::-webkit-scrollbar { display: none; }
.palog-tab { flex-shrink: 0; padding: 5px 9px; border-radius: 8px; border: none; background: none;
  font-family: inherit; font-size: 12px; color: var(--mute); cursor: pointer; }
.palog-tab.on { background: var(--ink); color: #fff; font-weight: 600; }
.palog-tab b { font-family: var(--num); font-weight: 600; margin-left: 3px; }
.palog-half { margin: 12px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.palog-half small { font-weight: 400; color: var(--mute-2); margin-left: 6px; font-size: 11px; }
.palog-half em { font-style: normal; font-family: var(--num); color: var(--orange-dark); margin-left: 6px; }
.pa-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px; }
.pa-head { display: flex; align-items: center; gap: 10px; }
.pa-head .face { width: 40px; height: 50px; }
.pa-head .face-num { font-size: 16px; }
.pa-who { flex-grow: 1; min-width: 0; }
.pa-name { font-size: 16px; font-weight: 600; }
.pa-name span { font-size: 11px; color: var(--mute-2); font-weight: 400; margin-left: 6px; }
.pa-line { font-size: 10.5px; color: var(--mute-2); margin-top: 2px; }
.pa-line b { color: var(--ink-3); font-weight: 600; font-family: var(--num); font-size: 12px; margin: 0 1px 0 5px; }  /* 숫자는 뒤 말에 붙이고 묶음 사이를 띄운다(「4타석  1타수」) */
.pa-line b:first-child { margin-left: 0; }
.pa-play { margin: 10px 0 0; padding: 8px 10px; background: var(--chip); border-radius: 8px;
  font-size: 12.5px; color: var(--ink-3); }
.pa-pred { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12px; }
.pa-pred .k { color: var(--mute-2); }
.pa-pred .v { font-family: var(--num); font-size: 15px; font-weight: 700; color: var(--orange); }
.pa-pred .v.reach { color: var(--green); }
.pa-pill { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.pa-pill.ok { color: var(--green); border-color: #bfe0d2; background: #eef8f3; }
.pa-pill.no { color: var(--red); border-color: #ecc9c1; background: #fbeeeb; }
.pa-pitches { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
/* 열 폭은 글자에 맞춘다 — 「스트라이크」가 좁은 칸에서 두 줄로 꺾였다. 어떤 칸도 줄을 못 바꾼다. */
.pa-p { display: grid; grid-template-columns: 18px 66px 62px 1fr 30px; align-items: center; gap: 6px;
  font-size: 12px; padding: 3px 0; color: var(--ink-3); white-space: nowrap; }
.pa-p i { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--dot-off);
  font-style: normal; font-family: var(--num); font-size: 10px; font-weight: 700; color: #fff; line-height: 1; }  /* 원 안 = 투구 순서 */
.pa-p i.b { background: var(--green); }
.pa-p i.s { background: var(--orange); }
.pa-p i.x { background: var(--ink-3); }
.pa-p .sp { font-family: var(--num); font-size: 13px; color: var(--mute); }
.pa-p .ct { font-family: var(--num); color: var(--mute-2); text-align: right; }

/* 320px 급에서는 숫자 둘(75% · 40%)과 「예측성공률 100%」가 닿는다. 낱말만 접고 숫자는 남긴다. */
@media (max-width: 340px) {
  .mix-row .succ i { display: none; }
}

/* ------------------------------------------------------- 지난 타석 되돌려 보기 */
.rewind-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  margin: 0 var(--gut); padding: 8px 12px; border-radius: 0 0 12px 12px;
  background: var(--ink); color: #fff; font-size: 12.5px;
}
.rewind-bar[hidden] { display: none; }
.rewind-label { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rewind-live {
  flex-shrink: 0; border: 0; border-radius: 999px; padding: 5px 12px;
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer;
}
/* ------------------------------------------------------- 상태 전환 토스트 (PM 10/9)
   보던 자리는 두고 화면 위에 나타났다 사라진다. 폭은 글자만큼, 화면보다 넓어지지 않게 */
.toast {
  position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; z-index: 30;
  transform: translate(-50%, -8px); max-width: calc(100% - 2 * var(--gut));
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, visibility 0s linear 0.25s;
}
.toast.on {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: opacity 0.25s, transform 0.25s, visibility 0s;
}
.toast-arrow { color: var(--orange-soft); }
.toast-arrow[hidden] { display: none; }
#toast-label { overflow: hidden; text-overflow: ellipsis; }
.pa-card[data-ab] { cursor: pointer; }
.pa-card.on { border-color: var(--ink); }

/* 안드로이드 크롬의 「탭하여 검색」 — 숫자·이름을 탭하면 아래에 구글 검색 막대가 뜬다(2026-09-23
   PM 캡처, 「34」). 선택할 수 없는 글자에는 뜨지 않는다. 이 화면에는 입력칸이 없어 막아도 잃는 게 없다. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ================================================================== 매치포인트 탭 (2026-09-26, PM 「일단 서비스에 반영」)
   시안 `scripts/mock_screens/matchpoint_props.py` 의 CSS 를 옮겼다. 이름은 시안과 같다(.band .op-* .tp .tpb .it .mu .ptype .cloud). */
.band[hidden] { display: none; }
.mp-seg[hidden] { display: none; }
.ptype[hidden] { display: none; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
/* 채점 표시 ○ ✕ ? — 이름을 mk- 로 둔다. 「.open」「.miss」가 적중 띠의 칸 이름(res open · out miss)과 겹쳐 「진행」 칸이 18px 원으로 찌그러졌다(9/26) */
.mk-ok, .mk-miss, .mk-open { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-family: var(--num); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.mk-ok { background: rgba(31,139,98,.14); color: var(--green-dark); } .mk-miss { background: rgba(176,67,43,.14); color: var(--red); } .mk-open { background: var(--chip); color: var(--mute-3); }
.mp-seg { margin: 18px var(--gut) 0; display: grid; gap: 8px; }
.sa-head { display: flex; align-items: baseline; gap: 8px; border-left: 4px solid var(--orange); padding-left: 8px; }
.sa-head b { font-size: 14px; } .sa-head span { font-size: 11px; color: var(--mute); }
.sa-foot { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
/* 띠 */
.band { margin: 14px var(--gut) 0; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px 12px; display: grid; gap: 8px; }
.band-top { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 11px; }
.hitchip { border: 1px solid #4a4a52; background: none; color: #e8e3da; border-radius: 999px; padding: 2px 9px; font: inherit; font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; }
.hitchip b { font-size: 15px; font-weight: 700; color: #fff; } .hitchip b u { text-decoration: none; font-size: 10px; color: #b5afa4; }
.band-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mp-head { font-family: var(--num); font-size: clamp(22px, 6.6vw, 28px); font-weight: 700; line-height: 1.15; color: var(--orange-soft); letter-spacing: -.01em; word-break: keep-all; }
.mp-sub { font-size: 13px; line-height: 1.5; color: #e8e3da; word-break: keep-all; }
.band-chips { display: grid; gap: 6px; }
.band-chips span { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #f1ede6; border-top: 1px solid #33333b; padding-top: 6px; line-height: 1.5; word-break: keep-all; }  /* 한글이 낱말 가운데서 끊기지 않게(「물러났/다」) */
.band-chips b { font-family: "IBM Plex Sans KR", sans-serif; font-size: 12px; font-weight: 700; color: var(--orange-soft); min-width: 7.4em; letter-spacing: .04em; flex-shrink: 0; }  /* 라벨 폭을 맞춰 문장 시작을 한 줄에 */
.band-chips em { font-style: normal; font-size: 10px; color: var(--orange-soft); border: 1px solid #5a4a3a; border-radius: 999px; padding: 0 6px; margin-left: 4px; }
/* 작전 */
.op-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.op-tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 8px 8px; display: grid; gap: 2px; text-align: center; color: var(--mute-2); }
.op-tile.on { border-color: var(--orange); background: #fff7ef; color: var(--ink); box-shadow: 0 0 0 1px var(--orange); }
.op-tn { font-size: 12px; font-weight: 600; } .op-tile b { font-family: var(--num); font-size: 24px; font-weight: 700; line-height: 1.05; } .op-tile b u { text-decoration: none; font-size: 11px; font-weight: 500; color: var(--mute-3); margin-left: 1px; }
.op-tile em { font-style: normal; font-size: 10px; color: var(--orange-dark); border: 1px solid var(--orange-soft); border-radius: 999px; padding: 0 6px; justify-self: center; }
.op-whys { display: grid; gap: 5px; }
.op-why { display: flex; gap: 7px; font-size: 12px; line-height: 1.5; color: var(--ink-3); } .op-why i { flex: 0 0 4px; width: 4px; border-radius: 2px; background: var(--line); margin-top: 3px; }
.op-why b { color: var(--ink); font-weight: 600; }
table.mp-t { width: 100%; border-collapse: collapse; font-size: 11px; }
table.mp-t th { text-align: left; font-weight: 500; color: var(--mute); font-size: 9px; padding: 2px 3px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.mp-t td { padding: 4px 3px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
table.mp-t td.num { font-size: 13px; font-weight: 600; text-align: right; } table.mp-t td.num u { text-decoration: none; font-size: 9px; font-weight: 400; color: var(--mute); margin-left: 1px; }
table.mp-t th:nth-child(n+3), table.mp-t td:nth-child(n+3) { text-align: right; }
table.mp-t tr.now td { background: #fff7ef; font-weight: 600; }
.op-gauge { display: grid; grid-template-columns: 56px 1fr 48px; align-items: center; gap: 8px; margin-bottom: 14px; }
.op-gl { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.op-grail { position: relative; height: 12px; background: var(--rail-2); border-radius: 4px; }
.op-grail b { position: absolute; left: 0; top: 0; height: 100%; border-radius: 4px; background: var(--orange); }
.op-grail i { position: absolute; top: -4px; width: 2px; height: 20px; background: var(--ink-3); } .op-grail i small { position: absolute; top: 21px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9px; color: var(--mute-2); font-style: normal; }
.op-gv { font-family: var(--num); font-size: 16px; font-weight: 700; text-align: right; } .op-gv u { text-decoration: none; font-size: 10px; font-weight: 500; color: var(--mute); }
.op-rows { display: grid; gap: 2px; }
.op-row { display: flex; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.op-inn { flex: 0 0 30px; font-family: var(--num); font-size: 15px; font-weight: 700; color: var(--mute); }
.op-rb { display: grid; gap: 3px; font-size: 12px; }
.op-sit2 { font-size: 11px; color: var(--mute); }
.op-pred { display: flex; align-items: center; gap: 6px; color: var(--ink-2); flex-wrap: wrap; } .op-pred small { font-size: 11px; color: var(--mute-2); }
/* 구종 칩 + 구름 */
.ptype { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-bottom: 8px; }
.ptype .chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 9px; font: inherit; font-size: 11px; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ptype .chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ptype .chip small { color: var(--mute); font-size: 10px; }
.ptype .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); } .ptype .chip.on small { color: #cfc9be; }
.cloud-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cloud-layer[hidden] { display: none; }
.zone-box.cloud-all .cloud i { display: none; }  /* 전체일 땐 칸마다 붙는 % 표시를 빼서 구름만 겹쳐 본다 */
.cloud { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; height: 0; pointer-events: none; }
.cloud i { position: absolute; left: 50%; top: 18%; transform: translate(-50%, -50%); font-style: normal; font-family: var(--num); font-size: 9px; font-weight: 700; color: #fff; border-radius: 999px; padding: 0 5px; line-height: 13px; }
/* 투수의 공 막대 */
.tp { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 2px; }
.tp-name { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; white-space: nowrap; }  /* 「체인지/업」으로 끊기지 않게 */ .tp-name i { width: 8px; height: 8px; border-radius: 50%; }
.tpb-row { display: grid; grid-template-columns: 64px 1fr; gap: 6px; align-items: start; border-top: 1px solid var(--line-2); padding: 7px 0; }
.tpb-bars { display: grid; gap: 3px; }
.tpb { display: grid; grid-template-columns: 38px 1fr 34px auto; align-items: center; gap: 6px; }
.tpb .lab { font-size: 10px; color: var(--mute-2); }
.tpb .rail { height: 10px; background: var(--rail-2); border-radius: 3px; overflow: hidden; }
.tpb .rail b { display: block; height: 100%; border-radius: 3px; }
.tpb .rail b.s, .tpb-legend i.s { background: var(--mute-4); } .tpb .rail b.v, .tpb-legend i.v { background: var(--orange); } .tpb .rail b.o, .tpb-legend i.o { background: var(--green); }
.tpb .v { font-family: var(--num); font-size: 13px; font-weight: 700; text-align: right; } .tpb .v u { text-decoration: none; font-size: 8px; font-weight: 500; color: var(--mute); }
.tpb small { font-size: 9px; color: var(--mute-2); white-space: nowrap; }
.tpb-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 10px; color: var(--mute); padding-bottom: 4px; }
.tpb-legend span { display: flex; align-items: center; gap: 4px; } .tpb-legend i { width: 12px; height: 7px; border-radius: 2px; display: block; }
/* 오늘 앞 타석 · 투수 오늘 · 맞대결 */
.inn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 5px; }
.it { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px; text-align: center; display: grid; gap: 1px; }
.it.now { border-color: var(--orange); background: #fff7ef; }
.ih { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.iv { font-family: var(--num); font-size: 18px; font-weight: 700; line-height: 1.1; } .iv2 { font-family: var(--num); font-size: 15px; font-weight: 600; line-height: 1.1; }
.iv u, .iv2 u { text-decoration: none; font-size: 9px; color: var(--mute); font-family: "IBM Plex Sans KR", sans-serif; }
.il { font-size: 9px; color: var(--mute-3); } .ih2 { font-size: 9px; color: var(--mute); margin-top: 2px; }
.mu-big { display: flex; align-items: baseline; gap: 4px; }
.mu-big .num { font-size: 34px; font-weight: 700; line-height: 1; } .mu-big small { font-size: 11px; color: var(--mute); margin-right: 14px; }
.mu-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.mu { display: inline-flex; flex-direction: column; border-radius: 8px; padding: 4px 7px; font-size: 11px; font-weight: 500; background: var(--chip); color: var(--ink-2); min-width: 64px; }
.mu em { font-style: normal; font-size: 9px; color: var(--mute); } .mu small { font-size: 9px; color: var(--mute-2); }
.mu.hit { background: rgba(31,139,98,.12); color: var(--green-dark); } .mu.k { background: rgba(176,67,43,.12); color: var(--red); } .mu.on { background: #fff1e5; color: var(--orange-dark); }
.mp-types { display: flex; gap: 5px; flex-wrap: wrap; } .mp-types span { font-size: 10px; color: var(--orange-soft); border: 1px solid #5a4a3a; border-radius: 999px; padding: 1px 7px; }
/* 3안: 투수 칸 · 타자 칸(PM 9/26 밤). 라벨이 짧아(예측·오늘·공략·약점·앞 타석) 라벨 칸을 줄여 문장 폭을 넓힌다 */
.band-sec { display: grid; gap: 4px; }
.band-sec-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; color: #cfc9be; border-top: 1px solid #4a4a52; padding-top: 8px; }
.band-sec-h b { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.band-sec-h .mp-types { margin-left: 2px; }
.band.v3 .band-chips b { min-width: 4.6em; }
.band.v3 .band-chips span:first-child { border-top: 0; padding-top: 2px; }
.band-bench { border-top: 1px solid #4a4a52; padding-top: 2px; }
.band-why { border-top: 1px solid #33333b; padding-top: 6px; font-size: 11px; color: #cfc9be; }
.band-why summary { cursor: pointer; color: var(--orange-soft); font-weight: 600; list-style: none; }
.band-why summary::before { content: "▸ "; } .band-why[open] summary::before { content: "▾ "; }
.band-why p { margin: 6px 0 0; line-height: 1.5; word-break: keep-all; } .band-why p b { color: #e8e3da; margin-right: 4px; }

/* 용어집 링크(PM 9/27) — 숫자 줄의 레퍼런스 용어 */
.band-chips a.term { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.band-gloss { display: block; margin-top: 6px; font-size: 11px; color: #9a948a; text-decoration: none; }

/* ---- 포스트시즌 대진표 (PM 10/14 B안 · 시안 docs/evidence/ui-mockups-20261014c/) ---- */
.psb{margin:10px var(--gut) 6px;padding:14px 14px 12px;background:var(--card);border:1px solid var(--line);border-radius:12px}
.psb-title{font-size:13px;font-weight:700;color:var(--ink);margin-bottom:6px}
.psb-lad{position:relative;height:312px}
.psb-t{position:absolute;width:40px;text-align:center}
.psb-box{width:40px;height:40px;border-radius:9px;background:var(--chip);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.psb-box img{width:30px;height:30px}
.psb-box.tbd{border-style:dashed;color:var(--faint);font-size:15px;font-weight:600;background:transparent}
.psb-t b{display:block;margin-top:3px;font-size:10.5px;font-weight:600;color:var(--ink-3);white-space:nowrap;margin-left:-14px;margin-right:-14px}
.psb-t.lose{opacity:.45}
.psb-vs{position:absolute;width:28px;text-align:center;font-size:11px;color:var(--mute-3);font-weight:600}
.psb-sc{position:absolute;width:40px;text-align:center;font-family:var(--num);font-size:15px;font-weight:700;color:var(--ink-3)}
.psb-sc em{font-style:normal;color:var(--ink)}
.psb-d{position:absolute;font-size:10.5px;color:var(--mute-2);line-height:1.45;white-space:nowrap}
.psb-d b{color:var(--ink-3);font-size:11px}
.psb-d strong{color:var(--ink);font-weight:700}
.psb-ln{position:absolute;border-color:var(--ink-4);border-style:solid;border-width:0}
.psb-tabs{display:flex;margin:12px 0 0;border-bottom:1px solid var(--line)}
.psb-tabs button{flex:1;text-align:center;font:inherit;font-size:12px;padding:8px 0;color:var(--mute-2);font-weight:600;background:none;border:0;border-bottom:2px solid transparent;cursor:pointer}
.psb-tabs button.on{color:var(--ink);border-bottom-color:var(--ink)}
.psb-g{padding:10px 2px;border-bottom:1px solid var(--line-2)}
.psb-g:last-child{border-bottom:0}
.psb-gh{display:flex;justify-content:space-between;font-size:11px;color:var(--mute-2);margin-bottom:6px}
.psb-gr{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-3);margin:3px 0}
.psb-gr img{width:18px;height:18px}
.psb-gr .noimg{width:18px;height:18px}
.psb-gr b{font-weight:600;min-width:34px}
.psb-gr .wl{font-size:11px;color:var(--mute-2);flex:1}
.psb-gr .wl i{font-style:normal;font-weight:700;margin-right:3px}
.psb-gr .wl i.w{color:#c0392b}
.psb-gr .s{font-family:var(--num);font-weight:700;font-size:15px;color:var(--ink-3)}
.psb-gr.win .s,.psb-gr.win b{color:var(--ink)}
.psb-empty{font-size:12px;color:var(--mute-3);padding:12px 2px}
.game-card.ps-card{justify-content:center;gap:2px}
.game-card.ps-card b{font-size:11px;font-weight:700;color:var(--ink);line-height:1.25}
