/* 프로토 경기 목록 · 조합기 · 내 조합 (templates/betscore/proto_list.html, partials/proto_board_*.html)
   경기 목록 = 상품마다 한 줄, 조합기 = 경기 한 줄에 시장 칸. 넓은 화면은 표, 좁은 화면은 카드(컨테이너 쿼리). */
.pb {
  --pb-bg: var(--bs-bg, #0b1119); --pb-surface: var(--bs-surface, #131e2b); --pb-elev: var(--bs-elevated, #1c2b3b);
  --pb-line: #223142; --pb-line2: var(--bs-border, #34485c);
  --pb-text: var(--bs-text, #f2f6fa); --pb-sec: var(--bs-secondary, #b8c7d6); --pb-muted: var(--bs-muted, #a0b2c5);
  --pb-accent: var(--bs-accent, #68e0bd); --pb-on-accent: var(--bs-on-accent, #08271f); --pb-accent-surf: var(--bs-accent-surface, #173b34);
  --pb-violet: #5b4cf0; --pb-violet-text: #c7c1ff; --pb-violet-surf: #2a2560;
  --pb-warn: var(--bs-warning, #f3cd88); --pb-warn-surf: #3a2f17; --pb-neg: var(--bs-negative, #ffa0a8);
  --pb-cell: #1a2533; --pb-cell-line: #2d3c4e; --pb-hit: #fde047; --pb-hit-num: #0b0f14;
  --pb-up: #fca5a5; --pb-down: #93c5fd; --pb-c0: #60a5fa; --pb-c1: #94a3b8; --pb-c2: #fb923c;
  --pb-top: 72px; --pb-fbar-h: 0px;
  container-type: inline-size; container-name: pbpage;
  display: flex; flex-direction: column; gap: 14px; color: var(--pb-text);
  font-variant-numeric: tabular-nums;
}
.pb [hidden] { display: none !important; }
.pb button, .pb input, .pb select { font: inherit; color: inherit; }
.pb :focus-visible { outline: 2px solid var(--pb-accent); outline-offset: 2px; }

/* 하위 탭 */
.pb-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--pb-line2); overflow-x: auto; scrollbar-width: none; }
.pb-subtabs button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; color: var(--pb-sec); font-size: 15px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.pb-subtabs button[aria-selected="true"] { color: var(--pb-accent); border-bottom-color: var(--pb-accent); font-weight: 700; }
.pb-bdg { font-size: 11.5px; background: var(--pb-accent-surf); color: var(--pb-accent); border-radius: 6px; padding: 1px 6px; font-weight: 700; }

/* 회차 줄 */
.pb-round { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pb-title { margin: 0; font-size: 20px; font-weight: 800; }
.pb-rnav { display: inline-flex; align-items: center; gap: 6px; }
.pb-rstep { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; border-radius: 10px; background: var(--pb-elev); border: 1px solid var(--pb-line2); color: var(--pb-sec); text-decoration: none; font-size: 18px; }
span.pb-rstep { opacity: .35; }
.round-selector { position: relative; }
.round-select-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--pb-violet); border: 0; border-radius: 10px; padding: 7px 12px; font-weight: 700; cursor: pointer; min-height: 38px; color: #fff; }
.round-select-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.round-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 240px; max-height: 360px; overflow: auto; background: var(--pb-elev); border: 1px solid var(--pb-line2); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.round-dropdown.show { display: block; }
.round-dropdown-item { display: flex; width: 100%; justify-content: space-between; gap: 12px; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; text-align: left; min-height: 40px; color: var(--pb-text); }
.round-dropdown-item:hover, .round-dropdown-item.active { background: #25374a; }
.round-dropdown-item .round-year { color: var(--pb-muted); font-size: 12px; }
.pb-rnote { margin: 6px 10px 4px; font-size: 11.5px; color: var(--pb-muted); }
.pb-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; background: #26303d; color: var(--pb-sec); }
.pb-pill.open { background: var(--pb-accent-surf); color: var(--pb-accent); }
.pb-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pb-rinfo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pb-rinfo .pb-pill { flex: none; white-space: nowrap; }
.pb-rmeta { color: var(--pb-sec); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-rm-sep { font-style: normal; }
.pb-rm-xs { display: none; }   /* 휴대폰용 짧은 마감 글('마감 10/18(일) 23:00') */
/* 간단히 | 자세히 — 앱 프로토 탭의 보기 전환과 같은 자리(회차 줄 오른쪽 끝) */
.pb-viewseg { margin-left: auto; gap: 2px; padding: 2px; border: 1px solid var(--pb-line2); border-radius: 10px; background: var(--pb-bg); }
.pb-viewseg .pb-chip { border: 1px solid transparent; background: none; border-radius: 8px; min-height: 32px; padding: 0 11px; color: var(--pb-muted); }
.pb-viewseg .pb-chip[aria-pressed="true"] { background: var(--pb-elev); border-color: var(--pb-line2); color: var(--pb-text); }
@container pbpage (max-width: 760px) {
  .pb-title { flex-basis: 100%; font-size: 18px; }
  /* 휴대폰: ① ‹ 회차 › 공유  ② [발매 중] 경기·상품 수 / 회차 마감  [간단히|자세히] — 앱 회차 줄과 같은 두 줄 */
  .pb-rnav { flex: 1 1 100%; }
  .pb-rinfo { flex: 1 1 0; order: 2; }
  .pb-viewseg { order: 3; }
  .pb-rmeta { font-size: 12.5px; line-height: 1.35; white-space: normal; overflow: visible; }
  .pb-rm-p { display: none; }
  .pb-rm-x { display: block; }
  .pb-rm-x .pb-rm-sep, .pb-rm-xl { display: none; }
  .pb-rm-xs { display: inline; }
  .pb-viewseg .pb-chip { padding: 0 9px; }
}

.pb-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; background: #122436; border: 1px solid #24405a; border-radius: 12px; padding: 10px 14px; color: var(--pb-sec); font-size: 13px; }
.pb-note svg { flex: none; margin-top: 2px; color: var(--pb-accent); }
.pb-warn { margin: 0; font-size: 13px; color: var(--pb-warn); background: var(--pb-warn-surf); border-radius: 10px; padding: 8px 12px; }
.pb-note-s { font-size: 11.5px; color: var(--pb-muted); margin: 0; }

/* 거르기 띠 */
.pb-fbar { position: sticky; top: var(--pb-top); z-index: 30; background: color-mix(in srgb, var(--pb-bg) 96%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--pb-line); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.pb-fbar.static { position: static; }
.pb-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pb-flabel { font-size: 12px; color: var(--pb-muted); min-width: 28px; flex: none; white-space: nowrap; }
.pb-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--pb-line2); background: var(--pb-surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; min-height: 36px; color: var(--pb-sec); }
.pb-chip .pb-c { font-size: 11.5px; color: var(--pb-muted); }
.pb-chip[aria-pressed="true"] { background: var(--pb-accent-surf); border-color: var(--pb-accent); color: var(--pb-text); font-weight: 700; }
.pb-chip[aria-pressed="true"] .pb-c { color: var(--pb-accent); }
.pb-chip.st[aria-pressed="true"] { background: var(--pb-accent); color: var(--pb-on-accent); border-color: var(--pb-accent); }
.pb-chip.st[aria-pressed="true"] .pb-c { color: var(--pb-on-accent); }
.pb-divider { width: 1px; height: 22px; background: var(--pb-line2); }
.pb-search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--pb-line2); background: var(--pb-surface); border-radius: 10px; padding: 0 10px; min-height: 38px; flex: 1 1 200px; max-width: 300px; }
.pb-search input { border: 0; background: transparent; outline: none; width: 100%; min-height: 36px; }
.pb-search svg { flex: none; color: var(--pb-muted); }
.pb-sel { background: var(--pb-surface); border: 1px solid var(--pb-line2); border-radius: 10px; padding: 6px 10px; min-height: 38px; }
.pb-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pb-sec); cursor: pointer; min-height: 36px; }
.pb-toggle input { width: 16px; height: 16px; accent-color: var(--pb-accent); }
.pb-linkbtn { border: 0; background: none; color: var(--pb-muted); text-decoration: underline; cursor: pointer; min-height: 36px; font-size: 13px; }
.pb-count { margin-left: auto; color: var(--pb-accent); font-size: 13px; font-weight: 700; }
/* 경기 목록 띠: ① 상태 칩 · 검색 · 갱신 · 개수  ② 필터(숫자) · 시장 · | · 종목 칩 — 이름표 없이 칩이 말한다 */
.pb-chips { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pb-frow-a .pb-chips { flex: 0 1 auto; }
.pb-fbtn { gap: 5px; border-color: var(--pb-line2); color: var(--pb-text); }
.pb-fbtn[aria-expanded="true"] { background: var(--pb-elev); }
.pb-fbtn.has { border-color: var(--pb-accent); }
.pb-fbtn .pb-c { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pb-accent); color: var(--pb-on-accent); font-weight: 700; }
.pb-sel-chip { appearance: none; -webkit-appearance: none; border-radius: 999px; min-height: 36px; padding: 0 26px 0 12px; font-size: 13px; color: var(--pb-sec); background: var(--pb-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0b2c5' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; }
.pb-sel-chip.has { background-color: var(--pb-accent-surf); border-color: var(--pb-accent); color: var(--pb-text); font-weight: 700; }
/* 필터 패널 — 넓은 화면은 띠 아래 드롭다운 카드, 휴대폰은 바텀시트 */
.pb-fpanel { position: absolute; left: 0; top: 100%; z-index: 40; padding-top: 6px; }
.pb-fpanel-in { width: min(440px, calc(100vw - 32px)); background: var(--pb-surface); border: 1px solid var(--pb-line2); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.pb-fp-head { display: flex; align-items: center; gap: 10px; }
.pb-fp-head b { flex: 1; font-size: 15px; }
.pb-x { border: 0; background: var(--pb-elev); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--pb-sec); }
.pb-fp-sec { display: flex; flex-direction: column; gap: 6px; }
.pb-fp-sec h4 { margin: 0; font-size: 12px; color: var(--pb-muted); font-weight: 700; display: flex; gap: 6px; align-items: baseline; }
.pb-fp-sec h4 small { font-weight: 400; }
.pb-fp-sec .pb-sel { width: 100%; }
.pb-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; cursor: pointer; font-size: 13.5px; color: var(--pb-text); }
.pb-switch span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pb-switch small { font-size: 11.5px; color: var(--pb-muted); }
.pb-switch input { width: 18px; height: 18px; accent-color: var(--pb-accent); flex: none; }
.pb-fp-apply { width: 100%; }
@container pbpage (max-width: 760px) {
  .pb-fbar { position: static; backdrop-filter: none; background: var(--pb-bg); gap: 6px; }
  .pb-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pb-scroll::-webkit-scrollbar { display: none; }
  .pb-scroll .pb-chip { flex: none; }
  .pb-search { max-width: none; }
  .pb-count { margin-left: 0; }
  .pb-fpanel { position: fixed; inset: 0; z-index: 1001; padding: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; }   /* 로그인 연결 알림(#bs-auth-notice, z 1000)이 시트 아래쪽 스위치를 덮지 않게 */
  .pb-fpanel-in { width: 100%; max-height: 86vh; overflow: auto; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) { body.pb-fp-open { overflow: hidden; } }

/* 목록 공통 */
.pb-board { container-type: inline-size; container-name: pbboard; min-width: 0; display: flex; flex-direction: column; }
.pb-day { display: flex; flex-direction: column; }
.pb-dhead { position: sticky; top: calc(var(--pb-top) + var(--pb-fbar-h)); z-index: 20; background: var(--pb-bg); padding-top: 14px; }
.pb-dtitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 0 4px 8px; }
.pb-dtitle h2 { margin: 0; font-size: 16px; font-weight: 800; }
.pb-dsub { font-size: 12.5px; color: var(--pb-muted); }
.pb-dsum { font-size: 12.5px; color: var(--pb-sec); }
.pb-dsum b { color: var(--pb-text); }
.pb-fold { margin-left: auto; border: 1px solid var(--pb-line2); background: var(--pb-elev); border-radius: 9px; min-height: 36px; padding: 0 12px; cursor: pointer; font-size: 12.5px; color: var(--pb-sec); }
.pb-folded { border: 1px dashed var(--pb-line2); border-radius: 12px; padding: 14px; color: var(--pb-muted); font-size: 13px; margin: 0 0 6px; }
.pb-day:not(.is-folded) .pb-folded, .pb-day.is-folded .pb-rows, .pb-day.is-folded .pb-colhead { display: none; }
.pb-colhead { background: var(--pb-surface); border: 1px solid var(--pb-line); border-radius: 12px 12px 0 0; padding: 8px 14px; font-size: 11.5px; color: var(--pb-muted); }
.pb-rows { border: 1px solid var(--pb-line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--pb-surface); overflow: hidden; }
.pb-lgsub { font-size: 12.5px; font-weight: 700; color: var(--pb-sec); padding: 12px 14px 6px; border-top: 1px solid var(--pb-line); }
@container pbboard (max-width: 900px) { .pb-lgsub { border: 0; padding: 8px 4px 0; } }
.pb-empty { padding: 40px 16px; text-align: center; color: var(--pb-muted); border: 1px dashed var(--pb-line2); border-radius: 12px; }
.pb-empty b { display: block; color: var(--pb-text); font-size: 15px; margin-bottom: 4px; }
.pb-infeed { display: none; }

/* 배당 칸 */
.pb-odd { width: 56px; height: 42px; border-radius: 9px; border: 1px solid var(--pb-cell-line); background: var(--pb-cell); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; position: relative; padding: 0; color: var(--pb-text); }
.pb-ol { display: none; font-size: 10.5px; color: var(--pb-sec); line-height: 1.1; }
.pb-v { font-size: 15px; font-weight: 700; line-height: 1.15; }
.pb-ar { margin-left: 2px; font-size: 10px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.pb-ar.up { color: var(--pb-up); }
.pb-ar.down { color: var(--pb-down); }
.pb-rf { display: block; font-size: 10.5px; color: var(--pb-muted); line-height: 1.25; }
.pb-board:not(.ref-on) .pb-rf, .pb-board:not(.ref-on) .pb-h-ref { display: none; }
.pb-odd:hover:not(:disabled) { border-color: var(--pb-muted); }
.pb-odd[aria-pressed="true"] { background: var(--pb-accent-surf); border-color: var(--pb-accent); box-shadow: inset 0 0 0 1px var(--pb-accent); }
.pb-odd[aria-pressed="true"] .pb-v { color: var(--pb-accent); }
.pb-odd:disabled { cursor: default; }   /* 끝난 경기 배당도 흐리게 하지 않는다(운영 목록과 같이) */
.pb-odd.hit, .pb-odd.hit:disabled { background: var(--pb-hit); border-color: var(--pb-hit); opacity: 1; }
.pb-odd.hit .pb-v, .pb-odd.hit .pb-ol, .pb-odd.hit .pb-rf { color: var(--pb-hit-num); }
.pb-odd.hit .pb-ar.up { color: #7f1d1d; }
.pb-odd.hit .pb-ar.down { color: #1e3a8a; }
.pb-odd.na { cursor: default; background: transparent; border-style: dashed; border-color: var(--pb-line); }
.pb-odd.na .pb-v { color: var(--pb-muted); font-weight: 400; }
.pb-when { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pb-when strong { font-size: 14.5px; }
.pb-lgm { font-size: 12px; color: var(--pb-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-cl { font-size: 11.5px; color: var(--pb-muted); }
.pb-soon { display: inline-block; white-space: nowrap; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--pb-warn); background: var(--pb-warn-surf); border-radius: 6px; padding: 1px 6px; width: fit-content; }
.pb-st { display: inline-block; margin-top: 2px; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; width: fit-content; background: #26303d; color: var(--pb-sec); }
.pb-ai { font-size: 11px; font-weight: 700; color: var(--pb-violet-text); background: var(--pb-violet-surf); border-radius: 5px; padding: 1px 6px; text-decoration: none; white-space: nowrap; }
.pb-tag-chg { font-size: 11px; font-weight: 700; color: var(--pb-warn); }
.pb-tag-pk { font-size: 11px; font-weight: 700; color: var(--pb-accent); background: var(--pb-accent-surf); border-radius: 5px; padding: 1px 6px; }

/* ── 경기 목록: 상품마다 한 줄 ── */
.pb-lgrid { display: grid; grid-template-columns: 62px 92px 84px minmax(180px, 1fr) 236px 104px 76px 76px; column-gap: 12px; align-items: center; }
.pb-nboard .pb-lgrid { grid-template-columns: 62px 92px 84px minmax(180px, 1fr) 236px 90px; }   /* 조합기 번호순(좁은 폭 규칙이 뒤에서 덮도록 여기에) */
.pb-lrow { padding: 9px 14px; border-top: 1px solid var(--pb-line); }
/* Keep every market searchable while the browser skips off-screen card layout. */
.pb-lrow, .pb-mrow { content-visibility: auto; contain-intrinsic-block-size: auto 80px; }
.pb-lrow:first-child, .pb-lrow.is-lead { border-top-color: var(--pb-line2); }
.pb-rows > .pb-lrow:first-child { border-top: 0; }
.pb-lrow.is-done { background: #111a25; }
.pb-lrow.is-open-ins { background: #172535; }
.pb-lrow.is-picked { box-shadow: inset 3px 0 0 var(--pb-accent); }
.pb-no { display: inline-flex; align-items: center; justify-content: center; background: var(--pb-violet); border-radius: 7px; font-weight: 700; font-size: 13px; padding: 3px 0; width: 54px; color: #fff; }
.pb-lrow.is-done .pb-no { background: #3a3f6e; }
.pb-lgrid .pb-when .pb-lgm { display: none; }
.pb-lg { font-size: 13px; color: var(--pb-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-lmatch { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pb-teams { display: flex; gap: 6px; align-items: baseline; min-width: 0; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--pb-text); }
.pb-teams .pb-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pb-vs { color: var(--pb-muted); font-weight: 400; font-size: 12px; flex: none; }
.pb-lrow.is-rep .pb-teams { color: var(--pb-muted); font-weight: 500; }
.pb-teams:hover .pb-nm, .pb-teams2:hover .pb-nm { text-decoration: underline; text-decoration-color: var(--pb-line2); }
.pb-mk { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12.5px; color: var(--pb-accent); }
.pb-prd { font-size: 11px; border-radius: 5px; padding: 0 6px; background: #26303d; color: var(--pb-sec); font-weight: 700; }
.pb-prd.half { background: #3b2f5e; color: var(--pb-violet-text); }
.pb-lodds { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
/* 경기 목록 배당 칸 — 운영 목록과 같은 크기·색: 결과 이름 전체, 위쪽 띠(홈 파랑·무 회색·원정 주황), 맞은 칸 노랑 */
.pb-lodds .pb-odd { width: auto; height: auto; min-height: 50px; padding: 5px 4px; background: #222c3a; border-color: #34404f; border-top-width: 3px; }
.pb-lodds .pb-odd.o0 { border-top-color: var(--pb-c0); }
.pb-lodds .pb-odd.o1 { border-top-color: var(--pb-c1); }
.pb-lodds .pb-odd.o2 { border-top-color: var(--pb-c2); }
.pb-lodds .pb-odd.hit { background: var(--pb-hit); border-color: var(--pb-hit); }
.pb-lodds .pb-odd[aria-pressed="true"] { background: var(--pb-accent-surf); border-left-color: var(--pb-accent); border-right-color: var(--pb-accent); border-bottom-color: var(--pb-accent); }
.pb-lodds .pb-ol { display: block; font-size: 11px; font-weight: 500; color: #d5dce6; }
.pb-lodds .pb-odd.hit .pb-ol { color: #3f3a0b; }
.pb-lodds .pb-v { font-size: 16px; }
/* 종목 배지(운영 목록의 종목 아이콘) */
.pb-sp { position: relative; display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 5px; margin-right: 6px; vertical-align: -4px; }
.pb-sp::before { content: ""; position: absolute; inset: 3px; background: currentColor; -webkit-mask: var(--pb-sp-icon) center / contain no-repeat; mask: var(--pb-sp-icon) center / contain no-repeat; }
.pb-sp.SC { color: #22c55e; background: rgba(34, 197, 94, .15); --pb-sp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5l3.8 2.8-1.5 4.4h-4.6l-1.5-4.4z'/%3E%3Cpath d='M12 3v4.5M20.4 9.2l-4.6 1.1M17 20l-2.7-5.3M7 20l2.7-5.3M3.6 9.2l4.6 1.1'/%3E%3C/svg%3E"); }
.pb-sp.BK { color: #f97316; background: rgba(249, 115, 22, .15); --pb-sp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3v18M5.6 5.6c3.5 3.5 3.5 9.3 0 12.8M18.4 5.6c-3.5 3.5-3.5 9.3 0 12.8'/%3E%3C/svg%3E"); }
.pb-sp.BS { color: #3b82f6; background: rgba(59, 130, 246, .15); --pb-sp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M6.5 5.2c2.6 3.8 2.6 9.8 0 13.6M17.5 5.2c-2.6 3.8-2.6 9.8 0 13.6'/%3E%3C/svg%3E"); }
.pb-sp.VO { color: #a855f7; background: rgba(168, 85, 247, .15); --pb-sp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3c-1 4 0 7 0 9M12 12c3.5 1.8 6.8 1.5 8.6.2M12 12c-3.5 2-5.7 4.7-6.3 7.3'/%3E%3C/svg%3E"); }
.pb-res { display: inline-block; background: #26303d; border-radius: 6px; padding: 3px 8px; font-weight: 700; color: var(--pb-text); font-size: 12px; white-space: nowrap; }
.pb-lres .pb-res { white-space: normal; max-width: 100%; }   /* '원정승 105.5 : 116' 처럼 긴 결과는 두 줄로(옆 칸을 덮지 않게) */
.pb-res.pending, .pb-res.other { color: var(--pb-muted); font-weight: 500; }
.pb-why { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--pb-line2); background: var(--pb-elev); border-radius: 9px; min-height: 36px; padding: 0 8px; cursor: pointer; font-size: 12px; color: var(--pb-sec); white-space: nowrap; }
.pb-why.chg { color: var(--pb-warn); border-color: #5a4a26; }
.pb-why[aria-expanded="true"] { border-color: var(--pb-accent); color: var(--pb-text); }
.pb-why[aria-expanded="true"] svg, .pb-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.pb-lpick { text-align: center; }
.pb-pkbtn { border: 1px solid var(--pb-accent); background: var(--pb-accent-surf); color: var(--pb-accent); border-radius: 9px; min-height: 36px; padding: 0 8px; cursor: pointer; font-weight: 700; font-size: 12px; white-space: nowrap; }
.pb-lins { border-top: 1px dashed var(--pb-line2); background: #122030; padding: 14px; }
.pb-colhead.pb-lgrid > span:nth-child(5) { text-align: center; }
.pb-colhead .pb-h-lg { display: block; }
@container pbboard (max-width: 1120px) {
  .pb-lgrid { grid-template-columns: 58px 88px minmax(160px, 1fr) 224px 96px 70px 70px; }
  .pb-nboard .pb-lgrid { grid-template-columns: 58px 88px minmax(160px, 1fr) 224px 80px; }
  .pb-lg, .pb-colhead .pb-h-lg { display: none; }
  .pb-lgrid .pb-when .pb-lgm { display: block; }
}
@container pbboard (max-width: 880px) {
  .pb-lrow { contain-intrinsic-block-size: auto 180px; }
  .pb-colhead { display: none; }
  .pb-rows { border: 0; background: transparent; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 8px; }
  .pb-lgrid.pb-lrow { grid-template-columns: auto 1fr auto; grid-template-areas: "no when why" "match match match" "odds odds odds" "res res pick"; row-gap: 8px; border: 1px solid var(--pb-line); border-radius: 14px; background: var(--pb-surface); padding: 12px; }
  .pb-rows > .pb-lrow:first-child { border-top: 1px solid var(--pb-line); }
  .pb-lrow.is-done { background: #111a25; }
  .pb-lrow.is-picked { border-color: #2f6d5d; }
  .pb-no { grid-area: no; width: auto; padding: 3px 8px; }
  .pb-lrow .pb-when { grid-area: when; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
  .pb-lgrid .pb-when .pb-lgm { display: inline; }
  .pb-lrow .pb-when .pb-lgm::before { content: "·"; margin-right: 6px; color: var(--pb-muted); }
  .pb-soon, .pb-st { margin-top: 0; }
  .pb-lmatch { grid-area: match; }
  .pb-lrow.is-rep .pb-teams { color: var(--pb-text); }
  .pb-lodds { grid-area: odds; }
  .pb-lodds .pb-odd { min-height: 56px; }
  .pb-lodds .pb-v { font-size: 17px; }
  .pb-lres { grid-area: res; align-self: center; }
  .pb-lwhy { grid-area: why; }
  .pb-lpick { grid-area: pick; text-align: right; }
  .pb-lpick:empty { display: none; }
  .pb-lrow:not(.is-done) .pb-lres { display: none; }
  .pb-lins { border: 1px solid var(--pb-line2); border-top: 0; border-radius: 0 0 14px 14px; margin-top: -9px; padding: 12px; }
  .pb-lrow.is-open-ins { border-radius: 14px 14px 0 0; }
}

/* ── 조합기: 경기 한 줄 ── */
.pb-mixer-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.pb-panel { display: none; }
/* 내 조합 칸은 화면 폭 1,360px 이상에서 오른쪽에 붙는다(시안). 그보다 좁으면 아래 조합 띠. */
@media (min-width: 1360px) {
  .pb-mixer-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .pb-view.pb-mix .pb-panel { display: flex; }
  .pb[data-view="mixer"] .pb-slip { display: none !important; }
}
.pb[data-view="mine"] .pb-slip { display: none !important; }
.pb-grid { display: grid; grid-template-columns: 100px minmax(180px, 1fr) auto 104px; column-gap: 14px; align-items: center; }
.pb-mrow { padding: 9px 14px; border-top: 1px solid var(--pb-line); }
.pb-rows > .pb-mrow:first-child { border-top: 0; }
.pb-mrow.is-open-ins { background: #172535; }
.pb-mrow.is-picked { box-shadow: inset 3px 0 0 var(--pb-accent); }
.pb-mteams { min-width: 0; }
.pb-teams2 { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--pb-text); min-width: 0; }
.pb-teams2 .pb-nm { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 11.5px; color: var(--pb-muted); margin-top: 2px; }
.pb-mkwrap { display: flex; gap: 10px; align-items: center; }
.pb-mg { display: flex; align-items: center; gap: 4px; }
.g-1x2 { width: 176px; } .g-hc { width: 220px; } .g-ou { width: 160px; } .g-oe { width: 116px; }   /* 기준 40 + 4 + 칸 — 머리글 칸과 같은 폭 */
.pb-mkname { display: none; }
.pb-ln { width: 40px; flex: none; font-size: 11.5px; color: var(--pb-sec); text-align: right; padding-right: 4px; white-space: nowrap; }   /* 농구 기준점 '220.5' 도 칸에 붙지 않게 */
.pb-cells { display: flex; gap: 4px; }
.pb-mg.none { justify-content: center; color: var(--pb-muted); font-size: 12px; }
.pb-colhead .pb-mg { flex-direction: column; align-items: stretch; gap: 2px; }
.pb-mgt { font-weight: 700; color: var(--pb-sec); font-size: 12px; text-align: center; }
.pb-colhead .pb-cells span { width: 56px; text-align: center; }
.pb-colhead .pb-cells .pb-lnh { width: 40px; text-align: right; }
.pb-board.hide-1x2 .g-1x2, .pb-board.hide-hc .g-hc, .pb-board.hide-ou .g-ou, .pb-board.hide-oe .g-oe { display: none !important; }
/* 프로토 번호 — 경기 목록·번호순의 번호와 같은 보라 번호표. 표: 칸 묶음 왼쪽 위(모든 묶음 같은 자리, 기준점·배당 칸은 그 아래 한 줄),
   카드: 상품 이름 앞, 추가 줄·'자세히' 목록: 이름 앞. 고른 상품의 번호는 초록. 담은 칩(.pb-pk)의 번호는 글자 그대로 */
.pb-mno, .pb-mkno, .pb-xl-name .pb-pkno, .pb-mdl-name .pb-pkno { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 28px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--pb-violet-surf); color: var(--pb-violet-text); font-size: 11.5px; font-weight: 700; font-style: normal; line-height: 1; }
.pb-mkno { display: none; }
.pb-mg:has(.pb-odd[aria-pressed="true"]) :is(.pb-mno, .pb-mkno), .pb-xl:has(.pb-odd[aria-pressed="true"]) .pb-pkno, .pb-mdl-row:has(.pb-odd[aria-pressed="true"]) .pb-pkno { background: var(--pb-accent-surf); color: var(--pb-accent); }
@container pbboard (min-width: 901px) {
  .pb-mrow .pb-mg:not(.none) { display: grid; grid-template-areas: "no" "cells"; row-gap: 4px; justify-content: start; }
  .pb-mrow .g-hc:not(.none), .pb-mrow .g-ou:not(.none) { grid-template-areas: "no no" "ln cells"; column-gap: 4px; }   /* 머리글(기준 + 4 + 칸)과 같은 자리 */
  .pb-mrow .pb-mno { grid-area: no; justify-self: start; }
  .pb-mrow .pb-ln { grid-area: ln; }
  .pb-mrow .pb-mg .pb-cells { grid-area: cells; }
}
.pb-pkno { font-style: normal; font-size: 11px; color: var(--pb-muted); font-weight: 600; }
/* 같은 경기의 다른 상품(베트맨 투표지는 한 경기에 상품 하나) */
.pb-odd.is-locked { opacity: .38; cursor: not-allowed; }
.pb-odd.is-locked:hover { border-color: var(--pb-cell-line); }
/* 보기: 경기별 · 번호순 */
.pb-seg { display: inline-flex; gap: 4px; flex: none; }
.pb-mixmain { min-width: 0; }
/* 전반·승5패는 유형을 고르면 줄 아래 추가 줄로. 칸 머리글이 없으니 칸마다 결과 이름을 쓴다('자세히' 목록도 같다). */
/* 기본 칸은 오른쪽 끝에 붙여 머리글과 같은 자리(줄마다 열 폭이 달라도) */
.pb-mkcol { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
.pb-xlines { display: flex; flex-direction: column; gap: 4px; }
.pb-xl { display: grid; grid-template-columns: 112px auto; gap: 8px; align-items: center; }
.pb-xl-name { font-size: 12px; font-weight: 700; color: var(--pb-sec); }
.pb-xl-name small { font-weight: 400; color: var(--pb-muted); }
.pb-xl .pb-odd, .pb-mdetail .pb-odd { height: auto; min-height: 42px; padding: 3px 2px; }
.pb-xl .pb-ol, .pb-mdetail .pb-ol { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-xhead { display: none; font-weight: 700; color: var(--pb-sec); font-size: 12px; }
.pb-board.no-main .pb-mkwrap { display: none; }
.pb-board.no-main .pb-xhead { display: block; }
.pb-act { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.pb-more { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--pb-line2); background: var(--pb-elev); border-radius: 9px; padding: 0 8px; min-height: 36px; cursor: pointer; font-size: 12.5px; color: var(--pb-sec); }
.pb-more b { color: var(--pb-accent); font-weight: 700; }
.pb-more[aria-expanded="true"] { border-color: var(--pb-accent); color: var(--pb-text); }
.pb-act .pb-ai { text-align: center; padding: 3px 6px; }
@container pbboard (max-width: 1150px) {
  .pb-grid { grid-template-columns: 80px minmax(120px, 1fr) auto 84px; column-gap: 12px; }
  .pb-mrow .pb-odd, .pb-mdetail .pb-odd { width: 46px; }
  .pb-mrow .pb-ar { font-size: 9px; }
  .g-1x2 { width: 146px; } .g-hc { width: 184px; } .g-ou { width: 134px; } .g-oe { width: 96px; }
  .pb-ln { width: 34px; font-size: 11px; padding-right: 3px; }
  .pb-mkwrap { gap: 8px; }
  .pb-colhead .pb-cells span { width: 46px; }
  .pb-colhead .pb-cells .pb-lnh { width: 34px; }
  .pb-more { font-size: 12px; padding: 0 6px; }
  .pb-xl { grid-template-columns: 96px auto; }
}
.pb-mdetail { border-top: 1px dashed var(--pb-line2); background: #122030; padding: 14px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.pb-mdetail h3 { margin: 0 0 8px; font-size: 13px; color: var(--pb-sec); font-weight: 700; }
.pb-mdetail h3 small { font-weight: 400; color: var(--pb-muted); }
.pb-mdl { display: flex; flex-direction: column; gap: 4px; }
.pb-mdl-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 9px; }
.pb-mdl-row.is-sel { background: #1d3146; box-shadow: inset 0 0 0 1px var(--pb-line2); }
.pb-mdl-name { border: 0; background: none; text-align: left; cursor: pointer; padding: 4px 2px; min-height: 36px; display: flex; flex-direction: column; justify-content: center; color: var(--pb-text); }
.pb-mdl-name b { font-size: 12.5px; }
.pb-mdl-name small { font-size: 11px; color: var(--pb-muted); }
.pb-mdl-chg { font-size: 11.5px; color: var(--pb-muted); white-space: nowrap; }
.pb-mdl-chg.on { color: var(--pb-warn); font-weight: 700; }
@container pbboard (max-width: 900px) {
  .pb-mrow { contain-intrinsic-block-size: auto 320px; }
  .pb-mix .pb-colhead { display: none; }
  .pb-grid.pb-mrow { grid-template-columns: 1fr auto; grid-template-areas: "when when" "teams teams" "mk mk" "act act"; row-gap: 8px; border: 1px solid var(--pb-line); border-radius: 14px; background: var(--pb-surface); padding: 12px; }
  .pb-rows > .pb-mrow:first-child { border-top: 1px solid var(--pb-line); }
  .pb-mrow.is-picked { border-color: #2f6d5d; }
  .pb-mrow .pb-when { grid-area: when; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .pb-mrow .pb-when strong { font-size: 14px; }
  .pb-mrow .pb-when .pb-lgm::before { content: "·"; margin-right: 6px; color: var(--pb-muted); }
  .pb-mrow .pb-cl { margin-left: auto; }
  .pb-mteams { grid-area: teams; }
  .pb-mkcol { grid-area: mk; gap: 8px; align-items: stretch; }
  .pb-xl { grid-template-columns: 1fr; gap: 6px; border-top: 1px solid var(--pb-line); padding-top: 8px; }
  .pb-xl .pb-cells { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
  .pb-xl .pb-odd { height: 48px; }
  .pb-teams2 .pb-nm { font-size: 15px; }
  .pb-mkwrap { grid-area: mk; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pb-mg { width: auto !important; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; border-top: 1px solid var(--pb-line); padding-top: 8px; }
  .g-1x2, .g-hc { grid-column: 1 / -1; }
  .pb-mkname { display: block; font-size: 12px; color: var(--pb-sec); font-weight: 700; min-width: 76px; }   /* 번호표 + 이름이 들어가는 폭 — 승무패·핸디캡 칸이 같은 자리에서 시작 */
  .pb-mno { display: none; }
  .pb-mkname .pb-mkno { display: inline-flex; margin-right: 5px; }   /* 번호표가 이름 앞, 같은 줄 */
  .pb-mkname small { display: block; font-weight: 400; color: var(--pb-muted); font-size: 11px; }
  .pb-ln { display: none; }
  .pb-mg .pb-cells { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
  .g-ou, .g-oe { grid-template-columns: 1fr; }
  .g-ou .pb-mkname, .g-oe .pb-mkname { display: flex; gap: 6px; align-items: center; }
  .g-ou .pb-mkname small, .g-oe .pb-mkname small { display: inline; }
  .g-ou .pb-mkname .pb-mkno, .g-oe .pb-mkname .pb-mkno { margin-right: 0; }
  .pb-mrow .pb-odd, .pb-mdetail .pb-odd { width: auto; height: 48px; }
  .pb-mrow .pb-ol, .pb-mdetail .pb-ol { display: block; }
  .pb-mg.none { display: none; }
  .pb-act { grid-area: act; flex-direction: row; justify-content: space-between; align-items: center; }
  .pb-act .pb-more { flex: 1; min-height: 40px; }
  .pb-act .pb-ai { padding: 9px 12px; font-size: 12.5px; border-radius: 9px; }
  .pb-mdetail { grid-template-columns: 1fr; border: 1px solid var(--pb-line2); border-top: 0; border-radius: 0 0 14px 14px; margin-top: -10px; padding: 14px 12px; }
  .pb-mrow.is-open-ins { border-radius: 14px 14px 0 0; }
  .pb-mdl-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n c2" "c c"; row-gap: 4px; }
  .pb-mdl-name { grid-area: n; }
  .pb-mdl-row .pb-cells { grid-area: c; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .pb-mdl-chg { grid-area: c2; }
}

/* 휴대폰 카드 사이 광고 (슬롯이 있을 때만 그려진다) */
@container pbpage (max-width: 760px) {
  .pb-infeed { display: block; min-height: 100px; background: #0f1822; border: 1px solid var(--pb-line); border-radius: 14px; padding: 8px; overflow: hidden; }
}

/* 근거 */
.pb-ins { background: var(--pb-surface); border: 1px solid var(--pb-line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; min-width: 0; }
.pb-mdetail .pb-ins, .pb-ins.is-narrow { display: flex; flex-direction: column; }
.pb-ins-h, .pb-ins-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.pb-ins-h b { font-size: 14px; }
.pb-ins-h small { color: var(--pb-muted); font-size: 12px; }
.pb-blk { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb-blk h4 { margin: 0; font-size: 12.5px; color: var(--pb-sec); font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.pb-blk h4 small { font-weight: 400; color: var(--pb-muted); font-size: 11.5px; }
.pb-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pb-tbl th { font-weight: 500; color: var(--pb-muted); text-align: right; padding: 3px 6px; font-size: 11.5px; }
.pb-tbl th:first-child, .pb-tbl td:first-child { text-align: left; }
.pb-tbl td { text-align: right; padding: 4px 6px; border-top: 1px solid var(--pb-line); }
.pb-tbl td.up { color: var(--pb-up); font-weight: 700; }
.pb-tbl td.dn { color: var(--pb-down); font-weight: 700; }
.pb-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #243244; }
.pb-bar span { display: block; height: 100%; }
.pb-bar .b0, .pb-legend i.b0 { background: var(--pb-c0); }
.pb-bar .b1, .pb-legend i.b1 { background: var(--pb-c1); }
.pb-bar .b2, .pb-legend i.b2 { background: var(--pb-c2); }
.pb-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--pb-sec); }
.pb-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.pb-recent { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--pb-sec); }
.pb-recent li { display: grid; grid-template-columns: 62px 62px minmax(0, 1fr) 44px; gap: 6px; padding: 4px 0; border-top: 1px solid var(--pb-line); }
.pb-recent li span:nth-child(3) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-recent li b { text-align: right; }
.pb-lnk { display: inline-flex; align-items: center; gap: 4px; border-radius: 9px; padding: 0 12px; min-height: 36px; text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid var(--pb-line2); background: var(--pb-elev); color: var(--pb-text); }
.pb-ins-loading { color: var(--pb-muted); font-size: 13px; padding: 12px; }
@container pbboard (max-width: 880px) { .pb-ins { display: flex; flex-direction: column; } }

/* 내 조합 칸(데스크톱 조합기 오른쪽) */
.pb-panel { position: sticky; top: calc(var(--pb-top) + var(--pb-fbar-h) + 12px); flex-direction: column; gap: 12px; background: var(--pb-surface); border: 1px solid var(--pb-line2); border-radius: 14px; padding: 14px; max-height: calc(100vh - var(--pb-top) - var(--pb-fbar-h) - 24px); overflow: auto; }
.pb-panel h3 { margin: 0; font-size: 16px; display: flex; align-items: center; justify-content: space-between; }
.pb-panel h3 small { font-size: 12px; background: var(--pb-accent-surf); color: var(--pb-accent); border-radius: 6px; padding: 2px 8px; }
.pb-kv { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--pb-sec); gap: 8px; }
.pb-kv b { color: var(--pb-text); font-size: 14px; }
.pb-kv b.big { font-size: 22px; color: var(--pb-accent); }
.pb-legs { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--pb-line); padding-top: 10px; }
.pb-leg { display: flex; flex-direction: column; gap: 4px; }
.pb-leg-t { font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 6px; }
.pb-leg-t small { font-weight: 400; color: var(--pb-muted); }
.pb-leg-c { display: flex; flex-wrap: wrap; gap: 4px; }
.pb-pk { display: inline-flex; align-items: center; gap: 4px; background: var(--pb-elev); border: 1px solid var(--pb-line2); border-radius: 8px; padding: 2px 2px 2px 8px; font-size: 12px; white-space: nowrap; }
.pb-pk b { color: var(--pb-accent); }
.pb-pk button { border: 0; background: none; min-width: 30px; min-height: 30px; cursor: pointer; color: var(--pb-muted); border-radius: 6px; }
.pb-pk button:hover { background: #25374a; color: var(--pb-text); }
.pb-btn { border-radius: 10px; padding: 0 14px; min-height: 42px; font-weight: 700; cursor: pointer; border: 1px solid var(--pb-line2); background: var(--pb-elev); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--pb-text); }
.pb-btn.pri { background: var(--pb-violet); border-color: var(--pb-violet); color: #fff; }
.pb-btn.acc { background: var(--pb-accent); border-color: var(--pb-accent); color: var(--pb-on-accent); }
.pb-btn.ghost { border: 0; background: none; color: var(--pb-muted); font-weight: 500; min-height: 36px; }
.pb-btn:disabled { opacity: .6; cursor: default; }
.pb-warnline { font-size: 12px; color: var(--pb-warn); background: var(--pb-warn-surf); border-radius: 8px; padding: 6px 8px; }
.pb-warnline.block { color: var(--pb-neg); background: #3a1d24; }
.pb-okline { font-size: 12px; color: #7dd3fc; background: rgba(56, 189, 248, .1); border-radius: 8px; padding: 6px 8px; }
/* 베트맨 한경기 구매 지정(한경기 가능·한경기만) */
.pb-tag-sg { font-size: 11px; font-weight: 700; color: #7dd3fc; background: rgba(56, 189, 248, .13); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.pb-tag-sg.only { color: #fbbf24; background: rgba(251, 191, 36, .13); }
/* 조합 목록(젠토토 '조합하기'): 줄을 누르면 그 조합만 금액·뺄 경기·저장 */
.pb-prev { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--pb-line); padding-top: 8px; font-size: 12px; }
.pb-cb { border: 1px solid var(--pb-line); border-radius: 9px; background: var(--pb-surface); }
.pb-cb.open { border-color: var(--pb-accent); }
.pb-cb-h { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 6px; align-items: baseline; width: 100%; min-height: 36px; padding: 7px 8px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--pb-text); font-size: 12px; }
.pb-cb-h .n { color: var(--pb-muted); }
.pb-cb-h .t { color: var(--pb-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-cb.open .pb-cb-h .t { white-space: normal; }
.pb-cb-h b { text-align: right; }
.pb-cb-h span:last-child { text-align: right; color: var(--pb-muted); white-space: nowrap; }
.pb-cb-b { display: flex; flex-direction: column; gap: 6px; padding: 6px 8px 10px; border-top: 1px dashed var(--pb-line2); }
.pb-cb-leg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; cursor: pointer; min-height: 32px; }
.pb-cb-leg input { width: 16px; height: 16px; margin: 0; accent-color: var(--pb-accent); }
.pb-cb-leg small { display: block; color: var(--pb-muted); }
.pb-cb-leg.off span, .pb-cb-leg.off b { text-decoration: line-through; color: var(--pb-muted); }
.pb-cb-meta { font-size: 12px; color: var(--pb-sec); }
.pb-cb-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb-cb-act .pb-sel { flex: 1 1 110px; min-height: 36px; }
.pb-cb-act .pb-btn { min-height: 36px; padding: 0 10px; font-size: 12.5px; }
.pb-prev > .pb-btn.ghost, .pb-prev > .pb-linkbtn { align-self: center; }
/* 정/역 비율 막대(정배 청록·무 회색·역배 주황) */
.pb-kv-sides { align-items: flex-start; }
.pb-kv-sides > span:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; width: 150px; }
.pb-sides { display: flex; width: 100%; height: 16px; border-radius: 6px; overflow: hidden; background: var(--pb-elev); }
.pb-sides i { display: flex; align-items: center; justify-content: center; min-width: 16px; font-style: normal; font-size: 10.5px; font-weight: 800; color: #0b1119; }
.pb-sides i.o { background: #5eead4; }
.pb-sides i.m { background: #94a3b8; }
.pb-sides i.x { background: #fb923c; }
.pb-sides-t { font-size: 11px; color: var(--pb-muted); }
.pb-slip-an { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex-basis: 100%; }
.pb-slip-an .pb-sides { width: 120px; flex: none; }
.pb-slip-an small { font-size: 11.5px; color: var(--pb-sec); }
.pb-empty-p { font-size: 13px; color: var(--pb-muted); border: 1px dashed var(--pb-line2); border-radius: 10px; padding: 14px; text-align: center; margin: 0; }

/* 조합 띠 (좁은 화면·경기 목록) */
.pb-slip { position: sticky; bottom: 0; z-index: 35; background: #0f1a27; border-top: 1px solid var(--pb-accent); box-shadow: 0 -10px 28px rgba(0, 0, 0, .4); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); margin: 0 -16px; border-radius: 12px 12px 0 0; }
/* 띠는 접혀 있을 때 한 줄이다: 칩 줄이 줄어들고 배당·금액·버튼은 줄어들지 않는다. 정배/역배·확률 줄은 조합 목록을 열었을 때만 */
.pb-slip-in { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pb-slip-h { display: flex; flex-direction: column; }
.pb-slip-h b { font-size: 14px; }
.pb-slip-h small { font-size: 11.5px; color: var(--pb-muted); }
.pb-slip .pb-picks { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 80px; min-width: 80px; scrollbar-width: thin; padding-bottom: 2px; }
.pb-slip .pb-btn { min-height: 36px; }
.pb-slip .pb-pk { flex: none; }
.pb-calc { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.pb-calc .k { font-size: 11.5px; color: var(--pb-muted); display: block; }
.pb-calc .v { font-size: 16px; font-weight: 800; }
.pb-calc .v.acc { color: var(--pb-accent); }
@container pbpage (min-width: 761px) {   /* 데스크톱: 이름표를 값 옆에 — 띠 한 줄 높이. 휴대폰 펼침은 이름표가 값 위에 있어야 한 줄에 맞는다 */
  .pb-slip .pb-calc { flex: none; flex-wrap: nowrap; }
  .pb-slip .pb-calc > span, .pb-slip .pb-calc > label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
  .pb-slip .pb-calc .k { display: inline; }
}
.pb-slip .pb-act2 { display: flex; gap: 6px; flex: none; }
.pb-slip-tg { display: none; border: 1px solid var(--pb-line2); background: var(--pb-elev); border-radius: 9px; min-width: 44px; min-height: 36px; align-items: center; justify-content: center; cursor: pointer; }
.pb-slip.open .pb-slip-tg svg { transform: rotate(180deg); }
.pb-slip .pb-prev { flex-basis: 100%; max-height: min(32vh, 280px); overflow: auto; }   /* 목록이 화면을 덮지 않게 — 안에서 넘긴다 */
@container pbpage (min-width: 761px) and (max-width: 1000px) { .pb-slip-h small { display: none; } }   /* 좁은 데스크톱: 버튼이 둘째 줄로 밀리지 않게 */
@container pbpage (max-width: 760px) {
  .pb-slip-in { gap: 8px; }
  .pb-slip .pb-picks { order: 3; flex-basis: 100%; }
  .pb-slip .pb-prev { order: 4; }   /* 조합 목록은 고른 결과 칩 아래 */
  .pb-slip .pb-act2 { margin-left: auto; }
  .pb-slip-tg { display: inline-flex; }
  .pb-slip:not(.open) .pb-picks, .pb-slip:not(.open) .pb-amtw, .pb-slip:not(.open) .pb-act2, .pb-slip:not(.open) .pb-slip-h small, .pb-slip:not(.open) .pb-prev, .pb-slip:not(.open) .pb-warnline, .pb-slip:not(.open) .pb-slip-an { display: none; }
  .pb-slip:not(.open) .pb-calc { margin-left: auto; }
  .pb-slip:not(.open) .pb-okline { display: none; }
  .pb-slip:not(.open) .pb-calc .k { display: none; }
}
/* 오른쪽 아래 떠 있는 대화 버튼(베티): 조합 띠가 보이면 띠 위에 올라앉고(proto-list.js placeFab), 띠가 펼쳐져 시트처럼 화면을 덮으면 숨는다 */
body.pb-fab-up .betty-chat-btn { bottom: calc(var(--pb-slip-h, 0px) + 12px); }
body.pb-fab-off .betty-chat-btn { opacity: 0; visibility: hidden; transform: scale(.6); }
.pb-toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 80; background: #eef3f8; color: #0b1119; border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 600; max-width: min(92vw, 520px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); pointer-events: none; }
/* 알림이 아래 버튼을 가리지 않게 — 알림 안의 링크·버튼만 누를 수 있다 */
.pb-toast a, .pb-toast button { pointer-events: auto; }
.pb-toast .pb-linkbtn { color: #0b1119; font-weight: 700; font-size: 13px; min-height: 0; padding: 0; }

/* 내 조합 */
.pb-mine { display: flex; flex-direction: column; gap: 12px; }
.pb-mine-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pb-mine-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.pb-mine-head p { margin: 4px 0 0; color: var(--pb-sec); font-size: 13.5px; }
.pb-state { color: var(--pb-muted); font-size: 14px; padding: 24px 16px; text-align: center; border: 1px dashed var(--pb-line2); border-radius: 12px; }
.pb-state a { color: var(--pb-accent); font-weight: 700; }
.pb-tickets { display: flex; flex-direction: column; gap: 10px; }
.pb-ticket { background: var(--pb-surface); border: 1px solid var(--pb-line); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
.pb-ticket-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 12.5px; color: var(--pb-sec); }
.pb-tk-badge { font-size: 11.5px; border-radius: 6px; padding: 2px 8px; font-weight: 700; background: #26303d; color: var(--pb-sec); }
.pb-tk-badge.won { background: var(--pb-hit); color: var(--pb-hit-num); }
.pb-tk-badge.lost { background: #3a2026; color: var(--pb-neg); }
.pb-tk-badge.pending { background: var(--pb-violet-surf); color: var(--pb-violet-text); }
.pb-ticket h3 { margin: 4px 0 2px; font-size: 15.5px; }
.pb-tk-teams { font-size: 13px; color: var(--pb-sec); }
.pb-tk-meta { font-size: 12px; color: var(--pb-muted); }
.pb-tk-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pb-tk-side b { font-size: 20px; }
.pb-tk-side span { font-size: 12.5px; color: var(--pb-sec); }
.pb-tk-acts { display: flex; gap: 6px; margin-top: 4px; }
.pb-tk-body { grid-column: 1 / -1; border-top: 1px solid var(--pb-line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pb-tk-leg { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 13px; }
.pb-tk-leg .n { color: var(--pb-muted); font-size: 12px; }
.pb-tk-leg .m small { display: block; color: var(--pb-muted); font-size: 11.5px; }
.pb-tk-leg .st { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 6px; background: #26303d; color: var(--pb-sec); white-space: nowrap; }
.pb-tk-leg .st.hit { background: var(--pb-hit); color: var(--pb-hit-num); }
.pb-tk-leg .st.miss { background: #3a2026; color: var(--pb-neg); }
@container pbpage (max-width: 640px) {
  .pb-ticket { grid-template-columns: 1fr; }
  .pb-tk-side { text-align: left; align-items: flex-start; }
}

/* ── 2026-10-26 레퍼런스 대조 보강: 배당승률 · 내 경기(★) · 베트맨 · 금액 입력 · 자동 갱신 · 공유 ── */
/* 배당승률(%) — 배당을 확률로 바꾼 참고값. 거르기 띠의 '배당승률'을 켜면 보인다(prob-on) */
.pb-pr { display: block; font-size: 10.5px; color: var(--pb-muted); line-height: 1.2; }
.pb-board:not(.prob-on) .pb-pr { display: none; }
.pb-board.prob-on .pb-odd { height: auto; min-height: 42px; padding: 3px 0 2px; }
.pb-odd.hit .pb-pr { color: #3f3a0b; }
/* 내 경기(★) — 경기 첫 줄의 팀 이름 옆 */
.pb-tm { display: flex; align-items: center; gap: 2px; min-width: 0; }
.pb-tm .pb-teams { min-width: 0; flex: 1 1 auto; }
.pb-star { border: 0; background: none; color: var(--pb-muted); font-size: 15px; line-height: 1; min-width: 32px; min-height: 32px; border-radius: 8px; cursor: pointer; padding: 0; }
.pb-star:hover { background: var(--pb-elev); }
.pb-star[aria-pressed="true"] { color: var(--pb-warn); }
.pb-lrow[data-fav="1"] .pb-no { box-shadow: inset 0 0 0 1px var(--pb-warn); }
/* 베트맨 바로가기(공식 발매사) — 발매 중이면 색을 띤다(앱 회차 시트와 같이) */
.pb-betman { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(243, 205, 136, .35); color: var(--pb-muted); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pb-betman.on { color: var(--pb-warn); background: rgba(243, 205, 136, .12); border-color: rgba(243, 205, 136, .5); }
.pb-share { background: var(--pb-elev); border: 1px solid var(--pb-line2); cursor: pointer; color: var(--pb-sec); }
/* 조합당 금액 — 직접 적기 + 빠른 선택 칩 */
.pb-amtw { display: flex; flex-direction: column; gap: 4px; }
.pb-amt { width: 112px; min-height: 36px; border-radius: 8px; border: 1px solid var(--pb-line2); background: var(--pb-bg); color: var(--pb-text); padding: 0 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-amt:invalid { border-color: var(--pb-neg); }
.pb-amtchips { display: flex; flex-wrap: wrap; gap: 4px; }
.pb-amtchips button { border: 1px solid var(--pb-line2); background: var(--pb-elev); color: var(--pb-sec); border-radius: 999px; min-height: 28px; padding: 0 9px; font-size: 11.5px; cursor: pointer; }
.pb-amtchips button[aria-pressed="true"] { border-color: var(--pb-accent); color: var(--pb-accent); background: var(--pb-accent-surf); }
.pb-amthint { font-size: 11px; color: var(--pb-muted); }
/* 패널의 금액 줄은 이름을 위에, 입력·칩을 아래에(이름이 세로로 쪼개지지 않게) */
.pb-kv:has(.pb-amtw) { flex-direction: column; align-items: stretch; gap: 4px; }
.pb-kv .pb-amtw { align-items: flex-start; }
/* 자동 갱신 표시(60초) */
.pb-live { font-size: 11.5px; color: var(--pb-muted); white-space: nowrap; }
.pb-live.on::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pb-accent); margin-right: 5px; vertical-align: middle; }

/* ── 휴대폰 머리(proto-head.css)와 짝 — 전역 내비 대신 머리 아래에 탭·회차·거르기가 붙는다 (2026-10-27) ── */
@container pbpage (max-width: 760px) {
  .pb-title { display: none; }              /* 머리가 '프로토'를 말한다 */
  .pb-round { gap: 8px 10px; }
  .pb-subtabs { position: sticky; top: var(--pb-top); z-index: 31; background: var(--pb-bg); }
  .pb:not(.is-search) .pb-search { display: none; }   /* 검색은 머리의 돋보기로 펼친다 */
  .pb-frow.pb-scroll > * { flex: none; }
  /* 띠 ①: [검색(펼쳤을 때, 한 줄 전체)] [상태 칩 — 가로 스크롤] [갱신 · 개수]  ②: [필터] [시장] | [종목 칩 — 가로 스크롤] */
  .pb-frow-a, .pb-frow-b { flex-wrap: nowrap; }
  .pb-frow-a > *, .pb-frow-b > * { flex: none; }
  .pb-frow-a .pb-chips, .pb-frow-b .pb-chips { flex: 1 1 auto; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }   /* 오른쪽 끝을 흐려 더 있다는 표시 */
  .pb-frow-a .pb-count { display: none; }   /* 칩의 숫자·필터 패널 단추·회차 줄이 개수를 말한다 */
  .pb.is-search .pb-frow-a { flex-wrap: wrap; row-gap: 6px; }
  .pb.is-search .pb-search { order: -1; flex: 1 1 100%; }
  /* 조합기 띠의 첫 줄(보기 · 검색 · 정렬 · 리그 · 토글): 줄바꿈하고 검색 칸은 맨 앞 한 줄 전체 */
  .pb-fbar > .pb-frow.pb-scroll:first-child { flex-wrap: wrap; overflow: visible; row-gap: 6px; }
  .pb-fbar > .pb-frow.pb-scroll:first-child > .pb-search { order: -1; flex: 1 1 100%; max-width: none; }
}

/* ── 간단히 보기(기본): 경기마다 처음 보이는 상품 한 줄, 나머지는 '+N 상품'으로 그 경기만 펼친다 ── */
.pb-lrow.is-folded { display: none; }
.pb-xtra { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; border: 1px solid var(--pb-line2); background: var(--pb-elev); color: var(--pb-sec); border-radius: 999px; min-height: 24px; padding: 0 9px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.pb-xtra::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); }
.pb-xtra[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.pb-xtra[aria-expanded="true"] { border-color: var(--pb-accent); color: var(--pb-accent); background: var(--pb-accent-surf); }
.pb-board.is-compact .pb-lrow.is-lead { border-top-color: var(--pb-line); }
