/* ============================================================
   DUCK BACCARAT — 데스크톱 기준 스타일
     · 반응형(900 / 620 / 390 / 320)은 responsive.css 에서만 관리
     · 색: 파랑 #256eeb · 노랑 #ffd34d · 민트 #3fc79a · 남색 #16305e
   ============================================================ */
.gg-bcr { background: var(--bg); min-height: calc(100vh - 120px); padding-bottom: 30px; }
.bcr-page { max-width: 1180px; margin: 0 auto; padding: 16px 16px 0; }

/* ---------- 제목 카드 ---------- */
.bcr-hero {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 20px;
  padding: 14px 18px; margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(96, 143, 214, .10);
}
.bcr-hero-duck { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; flex: none; }
.bcr-hero-tx { flex: 1; min-width: 0; }
.bcr-title { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.5px; line-height: 1.1; }
.bcr-title span { color: var(--blue); }
.bcr-title b { color: #f0b429; font-weight: 900; }
.bcr-desc { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: var(--tx-sub); }
.bcr-live {
  display: flex; align-items: center; gap: 7px; flex: none;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: #f2fbf6; border: 1px solid #cfeee0;
  font-size: 12px; font-weight: 800; color: #2a9a6a;
}
.bcr-live i { width: 8px; height: 8px; border-radius: 50%; background: #2a9a6a; animation: bcrPulse 1.8s ease-in-out infinite; }
@keyframes bcrPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
/* 배경음악 음소거 버튼 */
.bcr-bgm {
  width: 36px; height: 36px; flex: none; cursor: pointer;
  border: 1px solid var(--card-border); border-radius: 12px; background: #fff;
  font-family: inherit; font-size: 16px; line-height: 1;
  transition: filter .18s ease, transform .12s ease;
}
.bcr-bgm:hover { background: #f4f8fd; }
.bcr-bgm:active { transform: translateY(1px); }
.bcr-bgm.is-off { opacity: .55; }

.bcr-purse {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 8px 10px 8px 12px; border-radius: 16px;
  background: #f5faff; border: 1px solid #d7e8fa;
}
.bcr-purse-coin { width: 26px; height: 26px; object-fit: contain; }
.bcr-purse-label { font-size: 11px; font-weight: 800; color: var(--tx-sub); }
.bcr-purse-val { font-size: 18px; font-weight: 900; color: var(--tx); font-style: normal; }
.bcr-purse-val small { font-size: 11px; color: var(--tx-sub); margin-left: 3px; }
.bcr-charge { height: 34px; }

/* ---------- 3단 배치 ---------- */
/* ---------- 2단 배치: 넓은 게임 영역 + 오른쪽 정보 레일 ---------- */
.bcr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 14px; align-items: start; }
.bcr-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bcr-rail { display: flex; flex-direction: column; gap: 14px; }
.bcr-card { padding: 14px; }
.bcr-card-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 900; color: var(--tx); margin-bottom: 10px;
}
.bcr-card-sub { font-size: 11px; font-weight: 700; color: var(--tx-sub); }

/* 내 정보 */
.bcr-me { text-align: center; background: #f5faff; border: 1px solid #e6f0fa; border-radius: 14px; padding: 12px 10px; }
.bcr-me-duck { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.bcr-me-nick { margin-top: 4px; font-size: 14px; font-weight: 900; color: var(--tx); }
.bcr-me-label { margin-top: 8px; font-size: 11px; font-weight: 800; color: var(--tx-sub); }
.bcr-me-points { font-size: 19px; font-weight: 900; color: var(--blue); font-variant-numeric: tabular-nums; }
.bcr-odds { margin-top: 12px; }
.bcr-odds-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: 10px; margin-bottom: 6px;
  font-size: 12px; font-weight: 800; color: var(--tx-sub);
  border: 1px solid var(--card-border);
}
.bcr-odds-row b { font-size: 13px; font-weight: 900; color: var(--tx); }
.bcr-odds-row.is-player { border-color: #cfe0fb; }
.bcr-odds-row.is-banker { border-color: #f5e2b0; }
.bcr-odds-row.is-tie { border-color: #cfeee0; }
.bcr-note { margin: 10px 0 0; font-size: 11px; font-weight: 700; line-height: 1.7; color: #93a1b8; }

/* ---------- 게임판 ---------- */
.bcr-board { padding: 0; overflow: hidden; }
.bcr-board-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--card-border);
}
.bcr-phase { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 900; color: var(--blue); }
.bcr-phase i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.bcr-phase.is-revealing { color: #f0a92b; } .bcr-phase.is-revealing i { background: #f0a92b; animation: bcrPulse 1s ease-in-out infinite; }
.bcr-phase.is-result { color: #2a9a6a; } .bcr-phase.is-result i { background: #2a9a6a; }
.bcr-board-h-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.bcr-today { font-size: 12px; font-weight: 800; color: var(--tx-sub); }
.bcr-today b { color: var(--tx); font-weight: 900; font-variant-numeric: tabular-nums; }
/* 진행 시간 (결과 공개까지 · 결과 표시) — 남은 시간이 흐를 땐 파랗게 강조된다 */
.bcr-times {
  padding: 4px 10px; border-radius: 999px; background: var(--card-border, #e6ecf5);
  font-size: 11.5px; font-weight: 900; color: var(--tx-sub);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bcr-times.is-live { background: rgba(45, 110, 210, .14); color: var(--blue); }

/* 입장 경고 (하이로우와 같은 안내) */
.bcr-warn-back {
  position: fixed; inset: 0; z-index: 12500;
  background: rgba(15, 45, 90, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: cgFade .18s ease;
}
.bcr-warn-card {
  width: 100%; max-width: 340px; text-align: center;
  background: #fff; border-radius: 20px; padding: 26px 24px 22px;
  box-shadow: 0 20px 50px rgba(20, 45, 90, .3);
}
.bcr-warn-ico { font-size: 40px; line-height: 1; }
.bcr-warn-title { margin: 10px 0 8px; font-size: 18px; font-weight: 900; color: #e07a1f; }
.bcr-warn-tx { margin: 0 0 20px; font-size: 13.5px; font-weight: 700; line-height: 1.75; color: #5a6b87; }
.bcr-warn-tx b { color: #e03131; font-weight: 900; }
.bcr-warn-btn {
  width: 100%; height: 46px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #3b86fa, #1d6bfa); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 900;
  box-shadow: 0 5px 12px rgba(29, 107, 250, .28);
}
.bcr-warn-btn:hover { filter: brightness(1.05); }
.bcr-warn-btn:active { transform: translateY(1px); }

.bcr-table { padding: 16px; background: linear-gradient(180deg, #f7fbff, #eef6ff); }

.bcr-dealer { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bcr-dealer-duck { width: 58px; height: 58px; object-fit: contain; image-rendering: pixelated; }
.bcr-bubble {
  margin: 0; padding: 10px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--card-border);
  font-size: 12.5px; font-weight: 700; line-height: 1.6; color: var(--tx-sub);
  box-shadow: 0 4px 12px rgba(96, 143, 214, .10);
}
/* 말풍선 안 남은 시간 (3 → 2 → 1) */
.bcr-cd {
  display: inline-block; min-width: 24px; margin-left: 3px;
  font-size: 17px; font-weight: 900; color: var(--blue);
  font-variant-numeric: tabular-nums; text-align: center;
  animation: bcrCd .5s ease;
}
.bcr-cd-sub { display: inline-block; margin-top: 2px; font-size: 11.5px; font-weight: 800; color: var(--tx-sub); }
@keyframes bcrCd {
  from { transform: scale(1.35); opacity: .55; }
  to   { transform: scale(1);    opacity: 1; }
}

/* 카드 */
.bcr-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 16px; }
.bcr-hand { padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--card-border); }
.bcr-hand-h {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
  font-size: 11.5px; font-weight: 900; color: var(--tx-sub); letter-spacing: .4px;
}
.bcr-hand-h b { font-size: 17px; color: var(--tx); font-variant-numeric: tabular-nums; }
.bcr-hand.is-player { border-color: #cfe0fb; }
.bcr-hand.is-banker { border-color: #f5e2b0; }
.bcr-hand.is-win { box-shadow: 0 0 0 2px rgba(42, 154, 106, .35); }
.bcr-cards { display: flex; gap: 7px; min-height: 66px; }
.bcr-card-face {
  width: 45px; height: 56px; flex: none; border-radius: 8px;
  background: #fff; border: 1px solid #d7e2f0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-weight: 900; color: #16305e;
  box-shadow: 0 2px 6px rgba(20, 50, 100, .10);
  animation: bcrCardIn .28s ease both;
}
.bcr-card-face.is-red { color: #d64545; }
.bcr-card-r { font-size: 16px; }
.bcr-card-s { font-size: 14px; }
.bcr-card-face.is-back {
  background: repeating-linear-gradient(45deg, #9dc2f5 0 6px, #7fb0f2 6px 12px);
  border-color: #7fb0f2; animation: none;
}
@keyframes bcrCardIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 베팅 영역 */
.bcr-bets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.bcr-bet {
  position: relative; cursor: pointer; border: 3px solid transparent; border-radius: 16px;
  padding: 14px 8px 12px; font-family: inherit; color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: filter .18s ease, box-shadow .18s ease;
}
.bcr-bet:hover { filter: brightness(1.05); }
.bcr-bet.is-player { background: linear-gradient(180deg, #5a9bfb, #2f7bf5); }
.bcr-bet.is-tie { background: linear-gradient(180deg, #63d3a8, #3fbd8e); }
.bcr-bet.is-banker { background: linear-gradient(180deg, #ffd977, #f5c33f); color: #6b4e00; }
.bcr-bet-en { font-size: 17px; font-weight: 900; letter-spacing: .5px; }
.bcr-bet-ko { font-size: 11.5px; font-weight: 700; opacity: .9; }
.bcr-bet-mult {
  margin-top: 5px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .28); font-size: 11.5px; font-weight: 900;
}
.bcr-bet.is-banker .bcr-bet-mult { background: rgba(255, 255, 255, .55); }
.bcr-bet-sum { margin-top: 4px; font-size: 10.5px; font-weight: 800; opacity: .85; min-height: 13px; }
.bcr-bet.is-picked { border-color: #16305e; box-shadow: 0 6px 16px rgba(20, 50, 100, .25); }
.bcr-bet.is-win { border-color: #2a9a6a; box-shadow: 0 0 0 3px rgba(42, 154, 106, .28); }
/* 진행 중에는 클릭만 막는다 — 마우스 모양은 그대로 둔다 (잠금 커서 표시 안 함) */
.bcr-board.is-locked .bcr-bet, .bcr-board.is-locked .bcr-chip { filter: grayscale(.25) brightness(.99); }

/* 칩 */
/* 칩 6개 + 올인 = 7개. 자리가 모자라면 다음 줄로 넘어간다 */
.bcr-chips {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px 4px;
}
.bcr-chip {
  flex: 0 0 auto;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  border: 4px dashed rgba(255, 255, 255, .85); color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18), inset 0 -3px 6px rgba(0, 0, 0, .18), inset 0 3px 6px rgba(255, 255, 255, .25);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.bcr-chip:hover { transform: translateY(-2px); filter: brightness(1.06); }
/* 칩 색은 금액이 아니라 순서(1~6번째)로 정한다 — 관리자가 금액을 바꿔도 색이 유지된다 */
.bcr-chip.c1 { background: radial-gradient(circle at 50% 35%, #4d8ffa, #1e5fd6); }
.bcr-chip.c2 { background: radial-gradient(circle at 50% 35%, #56c77a, #2c924c); }
.bcr-chip.c3 { background: radial-gradient(circle at 50% 35%, #f5a03f, #d5700d); }
.bcr-chip.c4 { background: radial-gradient(circle at 50% 35%, #a97bf0, #7b3fe4); }
.bcr-chip.c5 { background: radial-gradient(circle at 50% 35%, #f177b6, #c9268a); }
.bcr-chip.c6 { background: radial-gradient(circle at 50% 35%, #3fc4c9, #12868f); }
.bcr-chip.is-picked { box-shadow: 0 0 0 3px #16305e, 0 6px 14px rgba(20, 50, 100, .3); transform: translateY(-2px); }
/* 올인 칩 — 칩 줄 맨 끝 (7번째 자리) */
.bcr-chip-allin {
  background: radial-gradient(circle at 50% 35%, #ff8a5c, #e03131);
  border-style: solid; border-color: rgba(255, 255, 255, .9);
  font-size: 13px; letter-spacing: -.3px;
}
.bcr-chip-allin.is-picked { box-shadow: 0 0 0 3px #a01c1c, 0 6px 14px rgba(224, 49, 49, .35); }

/* 올인 확인 (하이로우와 같은 Y / N) */
.bcr-allin-back {
  position: fixed; inset: 0; z-index: 12600;
  background: rgba(40, 10, 10, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: cgFade .18s ease;
}
.bcr-allin-card {
  width: 100%; max-width: 340px; text-align: center;
  background: #fff; border-radius: 22px; padding: 26px 24px 22px;
  border: 2px solid #ffd9d9; box-shadow: 0 20px 50px rgba(80, 20, 20, .3);
}
.bcr-allin-mark { font-size: 42px; line-height: 1; }
.bcr-allin-title { margin: 8px 0 4px; font-size: 18px; font-weight: 900; color: #d63b22; }
.bcr-allin-amount { margin: 0 0 10px; font-size: 26px; font-weight: 900; color: #16305e; }
.bcr-allin-amount small { font-size: 13px; color: #7f8a9e; }
.bcr-allin-tx { margin: 0 0 18px; font-size: 13.5px; font-weight: 700; line-height: 1.75; color: #5a6b87; }
.bcr-allin-tx b { color: #e03131; font-weight: 900; }
.bcr-allin-btns { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bcr-allin-sep { font-size: 18px; font-weight: 900; color: #c8d2e0; }
.bcr-allin-y, .bcr-allin-n {
  width: 96px; height: 52px; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 20px; font-weight: 900; letter-spacing: 1px;
  transition: filter .15s ease, transform .12s ease;
}
.bcr-allin-y { border: none; background: linear-gradient(180deg, #ff6b6b, #e03131); color: #fff;
  box-shadow: 0 5px 12px rgba(224, 49, 49, .32); }
.bcr-allin-n { border: 2px solid #dbe6f5; background: #fff; color: #16305e; }
.bcr-allin-y:hover, .bcr-allin-n:hover { filter: brightness(1.05); }
.bcr-allin-y:active, .bcr-allin-n:active { transform: translateY(1px); }

/* 하단 조작 */
.bcr-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 16px;
}
.bcr-guide { margin: 0; flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: var(--tx-sub); line-height: 1.6; }
.bcr-guide b { color: var(--tx); font-weight: 900; }
.bcr-act-btns { display: flex; gap: 8px; flex: none; }
.bcr-btn {
  height: 40px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  white-space: nowrap; flex: none;
  font-family: inherit; font-size: 13px; font-weight: 900; border: 1px solid var(--card-border);
  transition: filter .18s ease, transform .12s ease;
}
.bcr-btn-ghost { background: #fff; color: var(--tx); }
.bcr-btn-blue { background: linear-gradient(180deg, #3b86fa, #1d6bfa); color: #fff; border: none;
  box-shadow: 0 4px 10px rgba(29, 107, 250, .28); }
.bcr-btn:hover { filter: brightness(1.05); }
.bcr-btn:active { transform: translateY(1px); }
/* 눌리지 않는 동안에도 마우스 모양은 그대로 둔다 (잠금 표시 안 함) */
.bcr-btn:disabled { opacity: .5; cursor: default; box-shadow: none; filter: grayscale(.2); }

/* ---------- 최근 결과 ---------- */
.bcr-road { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
/* 가로로 늘어나지 않도록 지름을 고정한다 — 항상 정확한 원(O) */
.bcr-dot {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; aspect-ratio: 1 / 1; flex: none; justify-self: center;
  border-radius: 50%; border: 2px solid;
  font-size: 12px; font-weight: 900; background: #fff;
}
.bcr-dot.is-player { border-color: #4d8ffa; color: #2f7bf5; }
.bcr-dot.is-banker { border-color: #f0b429; color: #d59200; }
.bcr-dot.is-tie { border-color: #3fbd8e; color: #2a9a6a; }
.bcr-road-empty { grid-column: 1 / -1; margin: 6px 0; font-size: 11.5px; font-weight: 700; color: #9aa7bd; text-align: center; }
.bcr-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--card-border); }
.bcr-count { text-align: center; }
.bcr-count span { display: block; font-size: 10px; font-weight: 800; color: var(--tx-sub); }
.bcr-count b { font-size: 16px; font-weight: 900; color: var(--tx); }
.bcr-rules { margin: 0; padding-left: 16px; }
.bcr-rules li { font-size: 11.5px; font-weight: 700; line-height: 1.85; color: var(--tx-sub); }

/* 움직임 최소화 설정을 켠 사용자 */
@media (prefers-reduced-motion: reduce) {
  .bcr-card-face { animation: none; }
  .bcr-live i { animation: none; }
  .bcr-chip:hover, .bcr-chip.is-picked { transform: none; }
}

/* ============================================================
   개인회생 후 입장 제한 안내 (하이로우와 같은 화면)
   ============================================================ */
.bcr-lock { max-width: 520px; margin: 0 auto; padding: 46px 24px 40px; text-align: center; }
.bcr-lock-duck {
  display: block; margin: 0 auto 4px; width: auto; height: auto;
  max-width: 120px; max-height: 110px; object-fit: contain; image-rendering: pixelated;
}
.bcr-lock-badge {
  display: inline-block; margin: 12px 0 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(224, 49, 49, .1); border: 1px solid rgba(224, 49, 49, .28);
  font-size: 12.5px; font-weight: 900; color: #e03131; letter-spacing: .3px;
}
.bcr-lock-title { margin: 0 0 8px; font-size: 20px; font-weight: 900; color: #0b1740; line-height: 1.45; }
.bcr-lock-sub { margin: 0 0 22px; font-size: 14px; font-weight: 800; color: #5a6b87; }
.bcr-lock-timer {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f5f9ff);
  border: 2px solid #dbe6f5; box-shadow: 0 8px 20px rgba(20, 50, 110, .07);
}
.bcr-lock-timer span { font-size: 12px; font-weight: 800; color: #7f8a9e; letter-spacing: .4px; }
.bcr-lock-timer b {
  font-size: 40px; font-weight: 900; color: #16305e; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.bcr-lock-note { margin: 18px 0 0; font-size: 12.5px; font-weight: 700; line-height: 1.8; color: #8a95a9; }
.bcr-lock-btns { margin-top: 22px; }
.bcr-lock-btns .bcr-btn { width: 100%; max-width: 300px; height: 46px; }

/* ============================================================
   개인회생 회복 시간 — 베팅 조작 잠금 (하이로우와 같은 방식)
     화면은 그대로 보여주고 베팅 영역 · 칩 · 베팅 확정만 흐리게 잠근다.
     ⚠ pointer-events 를 끄지 말 것 — 눌렀을 때 안내 팝업을 띄워야 한다.
   ============================================================ */
.bcr-board.is-rv .bcr-bet,
.bcr-board.is-rv .bcr-chip {
  filter: grayscale(.8) brightness(.97);
  opacity: .55;
  cursor: not-allowed;
}
.bcr-btn.is-locked {
  filter: grayscale(.8) brightness(.97);
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}
.bcr-btn.is-locked:hover { filter: grayscale(.8) brightness(.97); transform: none; }
.bcr-btn.is-locked:active { transform: none; }

/* ---------- 개인회생 안내 팝업 ---------- */
.bcr-rv-card { max-width: 360px; }
.bcr-rv-ico { font-size: 40px; line-height: 1; }
.bcr-rv-title {
  margin: 12px 0 16px; font-size: 17px; font-weight: 900;
  line-height: 1.6; color: #16305e; letter-spacing: -.2px;
}
.bcr-rv-timer {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 0 0 20px; padding: 14px 10px;
  background: #f2f7ff; border: 1px solid #dbe8fb; border-radius: 14px;
}
.bcr-rv-timer span { font-size: 12px; font-weight: 800; color: #7e8aa2; }
.bcr-rv-timer b {
  font-size: 32px; font-weight: 900; color: #2470ef;
  font-variant-numeric: tabular-nums; letter-spacing: .5px; line-height: 1.1;
}
.bcr-rv-btn {
  background: linear-gradient(180deg, #3f8bfb, #2470ef);
  box-shadow: 0 5px 12px rgba(44, 126, 248, .3);
}

@media (max-width: 767px) {
  .bcr-rv-title { font-size: 15.5px; }
  .bcr-rv-timer b { font-size: 28px; }
}


/* ============================================================
   재구성 레이아웃 (시안 기준) — 현재 연승 · 정보 레일 · 최근 결과 6칸
   ============================================================ */

/* ---------- 게임판: 가운데 축 정렬 ----------
   왼쪽 "현재 연승" 카드는 자리를 차지하지 않게 겹쳐 놓는다.
   그래야 오리·카드·베팅 버튼이 게임판의 진짜 가운데에 온다. */
/* 왼쪽 "현재 연승" 카드가 앉을 자리를 좌우로 똑같이 비워둔다.
   그래야 오리·카드·베팅 버튼이 게임판의 진짜 가운데에 오면서도 카드와 겹치지 않는다. */
.bcr-table { position: relative; padding: 16px; }
.bcr-center {
  width: 100%;
  margin-inline: auto;
  display: flex; flex-direction: column;
}

/* ---------- 현재 연승 (작은 카드) ---------- */
.bcr-streak {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  width: 178px;
  background: #fff; border: 1px solid #e2ecf9; border-radius: 14px;
  padding: 10px 12px 11px;
  box-shadow: 0 4px 12px rgba(96, 143, 214, .12);
}
.bcr-streak-h { font-size: 11px; font-weight: 800; color: var(--tx-sub); }
.bcr-streak-n {
  display: flex; align-items: center; gap: 6px;
  margin-top: 3px; font-size: 13px; font-weight: 800; color: var(--tx);
}
.bcr-streak-n b { font-size: 21px; font-weight: 900; color: var(--tx); font-variant-numeric: tabular-nums; }
.bcr-streak-fire { font-size: 15px; line-height: 1; }
.bcr-streak-next {
  margin-top: 8px; padding: 7px 9px; border-radius: 10px;
  background: #fff8e6; border: 1px solid #f6e3b4;
  display: flex; flex-direction: column; gap: 2px;
}
.bcr-streak-next-h { font-size: 10.5px; font-weight: 800; color: #9a7a24; }
.bcr-streak-next-b { font-size: 11px; font-weight: 800; color: #8a6a12; }
.bcr-streak-next-b b { font-size: 12.5px; font-weight: 900; color: #e08a00; margin-left: 2px; }
.bcr-streak-next.is-done { background: #eef7ff; border-color: #d6e7fb; }
.bcr-streak-next.is-done .bcr-streak-next-h { color: #3f6ea8; }

/* ---------- 가운데 요소 간격 ---------- */
.bcr-center .bcr-dealer { margin-top: 4px; }
.bcr-center .bcr-hands { margin: 14px 0 14px; }
.bcr-center .bcr-guide { margin: 12px 0 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--tx-sub); }
/* 칩은 화면 정중앙에, 조작 버튼은 그 오른쪽에 둔다 (시안과 동일).
   양옆 칸을 같은 폭으로 고정하면 칩이 언제나 정확히 가운데에 오고 버튼과 겹치지 않는다. */
.bcr-chiprow {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px;
  align-items: center; margin-top: 8px;
}
.bcr-chiprow .bcr-chips { grid-column: 2; padding: 6px 0; gap: 8px 10px; }
.bcr-chiprow .bcr-act-btns { grid-column: 3; display: flex; gap: 8px; justify-content: flex-end; }
.bcr-chiprow .bcr-act-btns .bcr-btn { padding: 0 13px; font-size: 12.5px; }
.bcr-lock-note {
  margin: 10px 0 2px; text-align: center;
  font-size: 11.5px; font-weight: 700; color: #9aa7bd;
}

/* ---------- 최근 게임 결과 (6칸) ---------- */
.bcr-recent { padding: 14px 16px 16px; }
.bcr-recent-h { font-size: 14px; font-weight: 900; color: var(--tx); margin-bottom: 10px; }
.bcr-recent-note { font-size: 11px; font-weight: 700; color: var(--tx-sub); margin-left: 6px; }
.bcr-rec-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.bcr-rec {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 6px 11px; border-radius: 14px;
  background: #fafcff; border: 1px solid #e7effa; min-height: 132px;
}
.bcr-rec-mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; background: #fff; border: 2px solid #dbe6f5; color: var(--tx-sub);
}
.bcr-rec.is-player .bcr-rec-mark { border-color: #8fb9fb; color: #1f63dc; }
.bcr-rec.is-banker .bcr-rec-mark { border-color: #f3d38a; color: #d59a12; }
.bcr-rec.is-tie .bcr-rec-mark { border-color: #a5e0c6; color: #2a9a6a; }
.bcr-rec-score { margin-top: 4px; font-size: 13px; font-weight: 900; color: var(--tx); font-variant-numeric: tabular-nums; }
.bcr-rec-win { font-size: 11px; font-weight: 800; color: var(--tx-sub); }
.bcr-rec-mine { font-size: 10px; font-weight: 700; color: #9aa7bd; text-align: center; line-height: 1.4; }
.bcr-rec-mine b { color: #5a6b87; }
.bcr-rec-net { margin-top: 2px; font-size: 12.5px; font-weight: 900; color: var(--tx-sub); font-variant-numeric: tabular-nums; }
.bcr-rec-net.is-plus { color: #17a25c; }
.bcr-rec-net.is-minus { color: #e0453c; }
.bcr-rec-bonus {
  margin-top: 2px; padding: 2px 7px; border-radius: 999px;
  background: #fff3d1; border: 1px solid #f2dda2;
  font-size: 9.5px; font-weight: 900; color: #9a7a24; white-space: nowrap;
}
/* 칭호 효과 배지 (2026-08-25) — 연승 배지와 같은 모양, 색만 구분 */
.bcr-rec-bonus.is-title { background: #eaf4ff; border-color: #bcd9f7; color: #1f63dc; }
.bcr-rec-bonus.is-fee { background: #ffeeed; border-color: #f7c9c5; color: #c4433a; }
.bcr-rec.is-empty { background: #f7fafe; border-style: dashed; justify-content: center; }
.bcr-rec-dash { font-size: 20px; font-weight: 900; color: #cfd9e8; }
.bcr-rec-none { font-size: 10.5px; font-weight: 700; color: #c2cddd; }

/* ---------- 오른쪽 레일 ---------- */
.bcr-card-h-i {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef5fd; color: #7f8a9e; font-size: 11px; font-weight: 900; cursor: default;
}
.bcr-info { margin: 0; }
.bcr-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px dashed #eaf1fa;
}
.bcr-info-row:last-child { border-bottom: 0; }
.bcr-info-row dt { font-size: 12px; font-weight: 700; color: var(--tx-sub); }
.bcr-info-row dd { margin: 0; font-size: 12px; font-weight: 800; color: var(--tx-sub); }
.bcr-info-row dd b { font-size: 14px; font-weight: 900; color: var(--tx); font-variant-numeric: tabular-nums; }
.bcr-pnl {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: #eef5fd; border: 1px solid #dceafb;
  display: flex; align-items: center; justify-content: space-between;
}
.bcr-pnl > span { font-size: 12px; font-weight: 800; color: #3c4f74; }
.bcr-pnl > b { font-size: 15px; font-weight: 900; color: var(--tx); font-variant-numeric: tabular-nums; }
.bcr-pnl > b.is-plus { color: #1158c3; }
.bcr-pnl > b.is-minus { color: #e0453c; }

.bcr-rules { margin: 0; padding-left: 16px; }
.bcr-rules li { font-size: 11.5px; font-weight: 700; color: #5a6b87; line-height: 1.75; margin-bottom: 5px; }
.bcr-rules li b { color: var(--tx); font-weight: 900; }

/* 연승 보너스 안내 */
.bcr-bonus { display: flex; flex-direction: column; }
.bcr-bonus-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: 10px; border-bottom: 1px dashed #eaf1fa;
}
.bcr-bonus-row:last-of-type { border-bottom: 0; }
.bcr-bonus-n { font-size: 12px; font-weight: 800; color: #5a6b87; }
.bcr-bonus-v { font-size: 12.5px; font-weight: 900; color: #e08a00; font-variant-numeric: tabular-nums; }
.bcr-bonus-row.is-next { background: #fff8e6; border: 1px solid #f6e3b4; }
.bcr-bonus-row.is-next .bcr-bonus-n { color: #8a6a12; }
.bcr-bonus-row.is-done { opacity: .55; }
.bcr-bonus-row.is-done .bcr-bonus-v { color: #9aa7bd; }
.bcr-bonus-row.is-off .bcr-bonus-v { color: #b5c0d0; font-weight: 800; }
.bcr-bonus-all { margin: 8px 0 0; text-align: center; font-size: 11.5px; font-weight: 900; color: #1158c3; }
.bcr-bonus-note { margin: 8px 0 0; text-align: center; font-size: 10.5px; font-weight: 700; color: #9aa7bd; }

/* 게임 기록 전체 보기 */
.bcr-histbtn {
  padding: 14px; text-align: center; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 900; color: var(--blue);
  transition: filter .18s ease, transform .12s ease;
}
.bcr-histbtn:hover { filter: brightness(1.02); background: #f7fbff; }
.bcr-histbtn:active { transform: translateY(1px); }

/* 하단 안내 문구 */
.bcr-foot-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 0 0; font-size: 12px; font-weight: 700; color: #9aa7bd;
}
.bcr-foot-duck { width: 18px; height: 18px; object-fit: contain; image-rendering: pixelated; }


/* ============================================================
   시안 1:1 레이아웃  (시안 2400×2100 = 1200×1050 CSS px @2x)
   ------------------------------------------------------------
   측정값 (CSS px)
     · 바깥 흰색 컨테이너 : x 10~1190 (1180) · 안쪽 여백 18
     · 헤더 구분선        : y 104
     · 왼쪽 게임 패널     : x 28~868 (840) · y 119~
     · 오른쪽 정보 레일   : x 884~1170 (286) · 열 간격 16
     · 게임 스테이지      : y 172~672 (500)
     · 베팅 버튼 묶음     : x 69~826 (757) · 카드 패널 묶음 x 175~726 (551)
     · 중앙축             : x 447.75  (딜러·카드·버튼·칩 전부 동일)
   ============================================================ */

/* ---------- 페이지 전체를 하나의 큰 흰색 컨테이너로 ---------- */
.gg-bcr { background: var(--bg); min-height: calc(100vh - 120px); padding: 0 10px 26px; }
.bcr-page {
  max-width: 1180px; margin: 10px auto 0; padding: 14px 18px 18px;
  background: #fff; border: 1px solid #dbeafa; border-radius: 24px;
  box-shadow: 0 10px 30px rgba(96, 143, 214, .10), 0 1px 3px rgba(96, 143, 214, .06);
}

/* ---------- 상단 헤더 (컨테이너 안 · 아래에 얇은 구분선) ---------- */
.bcr-hero {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 4px 2px 18px 16px; margin: 0 0 15px;
  border-bottom: 1px solid #e7f0fb;
}
.bcr-hero::before {                       /* 시안 왼쪽의 파란 세로 막대 */
  content: ""; position: absolute; left: 0; top: 3px; height: 58px;
  width: 4px; border-radius: 3px; background: var(--blue);
}
.bcr-hero-duck { width: 56px; height: 56px; }
.bcr-title { font-size: 27px; letter-spacing: -.6px; }
.bcr-desc { margin-top: 5px; font-size: 13px; }
.bcr-bgm {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px; color: #2f7bf5;
  background: #f3f8ff; border: 1px solid #dbeafa;
}
.bcr-purse {
  gap: 11px; padding: 8px 8px 8px 14px; border-radius: 16px;
  border: 1px solid #e3eefb; background: #fff;
  box-shadow: 0 4px 12px rgba(96, 143, 214, .10);
}
.bcr-purse-coin { width: 30px; height: 30px; }
.bcr-purse-label { font-size: 11.5px; }
.bcr-purse-val { font-size: 20px; }
.bcr-charge { height: 38px; padding: 0 16px; border-radius: 12px; font-size: 13px; }

/* ---------- 본문 2열 : 게임 패널 840 · 간격 16 · 레일 286 ---------- */
.bcr-grid { grid-template-columns: minmax(0, 1fr) 286px; gap: 16px; align-items: start; }
.bcr-main { gap: 16px; }
.bcr-rail { gap: 17px; }

/* ---------- 왼쪽 큰 게임 패널 : 상태줄 + 스테이지 + 최근 결과 ---------- */
.bcr-board { padding: 0; overflow: hidden; border-radius: 20px; }
.bcr-board-h { padding: 11px 16px; }
.bcr-phase { font-size: 14px; }
.bcr-board-h-r { gap: 10px; flex-wrap: nowrap; }
.bcr-times { padding: 5px 12px; font-size: 12px; }
.bcr-live { height: 30px; padding: 0 13px; font-size: 12px; }

/* 게임 스테이지 — 중앙축은 스테이지 안쪽 폭의 정중앙 */
.bcr-table { padding: 16px 16px 35px; }
.bcr-center { max-width: 806px; }

/* 현재 연승 (왼쪽 위 · 중앙 요소를 밀지 않게 absolute) */
.bcr-streak { left: 20px; top: 17px; width: 155px; padding: 8px 12px 0; overflow: hidden; }
.bcr-streak-h { font-size: 11.5px; line-height: 1.2; }
.bcr-streak-n { margin-top: 5px; gap: 7px; font-size: 14px; line-height: 1.25; }
.bcr-streak-n b { font-size: 23px; }
.bcr-streak-fire { color: #16305e; flex: none; }
.bcr-streak-next {
  margin: 8px -12px 0; padding: 7px 12px 8px; gap: 1px; border-radius: 0;
  border: 0; border-top: 1px solid #f2e6c6; background: #fdf5e0;
}
.bcr-streak-next-h { font-size: 11px; line-height: 1.25; }
.bcr-streak-next-b { font-size: 11px; line-height: 1.3; white-space: nowrap; }
.bcr-streak-next-b b { font-size: 12.5px; line-height: 1.2; }

/* 딜러 — 시안 기준
     · 오리는 게임판 중앙축(x 449)에 정확히 맞춘다
     · 말풍선은 오리 오른쪽에 붙여 띄우고 꼬리가 오리를 향하게 한다
       (흐름에서 빼내므로 말풍선이 길어져도 오리의 중앙축이 흔들리지 않는다)
     · 텍스트 선명도를 위해 세로 정렬은 transform 없이 flex 정렬로만 처리 */
.bcr-center .bcr-dealer { position: relative; margin-top: 3px; gap: 0; }
.bcr-dealer-duck { width: 100px; height: 100px; flex: none; }
.bcr-bubble {
  position: absolute; left: calc(50% + 46px); top: 0; width: 235px; margin: 0;
  padding: 12px 20px; border-radius: 16px; font-size: 14px; line-height: 1.65;
}
.bcr-bubble::before {                     /* 말풍선 꼬리 — 오리 몸통 높이에 맞춘다 */
  content: ""; position: absolute; left: -9px; top: 36px;
  border: 9px solid transparent; border-right-color: #fff; border-left: 0;
  filter: drop-shadow(-1px 0 0 var(--card-border));
}

/* 카드 패널 — 베팅 버튼보다 조금 좁게 (551 / 757) */
.bcr-center .bcr-hands {
  width: 100%; max-width: 552px; margin: 15px auto 5px;
  grid-template-columns: 1fr 1fr; gap: 12px;
}
.bcr-hand { padding: 9px 13px 11px; border-radius: 15px; }
.bcr-hand-h { margin-bottom: 4px; font-size: 13px; letter-spacing: .3px; }
.bcr-hand.is-player .bcr-hand-h span { color: #2f6fd0; }
.bcr-hand.is-banker .bcr-hand-h span { color: #b98514; }
.bcr-hand-body { display: flex; align-items: center; gap: 14px; }
.bcr-cards { min-height: 0; gap: 8px; flex: none; }
.bcr-wait { font-size: 13px; font-weight: 700; color: #9aa7bd; white-space: nowrap; }
.bcr-hand.is-open .bcr-wait { display: none; }

/* 베팅 버튼 — 가로를 넓게 (757) */
.bcr-center .bcr-bets { width: 100%; max-width: 758px; margin-inline: auto; gap: 11px; }
.bcr-bet { padding: 14px 6px 12px; border-radius: 16px; gap: 2px; }
.bcr-bet-en { font-size: 22px; line-height: 1.15; }
.bcr-bet-ko { font-size: 13px; line-height: 1.3; }
.bcr-bet-mult { margin-top: 7px; padding: 4px 16px; font-size: 14px; border-radius: 999px; line-height: 1.3; }

/* 칩 행 — 안내문구(왼쪽) · 칩(정중앙) · 초기화/확정(오른쪽) 한 줄 */
.bcr-chiprow {
  /* 칩이 7개라 가운데 칸이 먼저 줄어들어야 한다.
     오른쪽 조작 버튼 칸은 제 크기를 지켜서 칩에 가려지지 않게 하고,
     자리가 모자라면 칩이 다음 줄로 넘어간다. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) max-content;
  align-items: center; column-gap: 12px; margin-top: 12px;
}
.bcr-center .bcr-guide {
  grid-column: 1; justify-self: start; margin: 0; text-align: left;
  font-size: 13px; font-weight: 700; color: #5a6b87;
}
.bcr-chiprow .bcr-chips { grid-column: 2; justify-self: center; padding: 0; gap: 8px 6px; }
.bcr-chip { width: 54px; height: 54px; font-size: 12px; }
.bcr-chip-allin { font-size: 14px; }
.bcr-chiprow .bcr-act-btns { grid-column: 3; justify-self: end; gap: 10px; }
.bcr-chiprow .bcr-act-btns .bcr-btn { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 13px; }
.bcr-lock-note { margin: 16px 0 0; font-size: 13px; color: #a3b0c4; }

/* ---------- 최근 게임 결과 (게임 패널 안쪽 흰 박스) ---------- */
.bcr-recent {
  margin: 22px 20px 33px; padding: 14px 24px 24px;
  background: #fff; border: 1px solid #e7effa; border-radius: 18px;
  box-shadow: none;
}
.bcr-recent-h { display: flex; align-items: baseline; font-size: 17px; margin-bottom: 10px; }
.bcr-recent-note { font-size: 12.5px; margin-left: 10px; }
.bcr-rec-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bcr-rec {
  gap: 0; padding: 13px 6px 14px; border-radius: 14px;
  background: #fafcff; border: 1px solid #eaf1fa; min-height: 166px;
  justify-content: flex-start;
}
.bcr-rec-mark { width: 52px; height: 52px; font-size: 22px; border-width: 3px; flex: none; }
.bcr-rec-score { margin-top: 12px; font-size: 17px; line-height: 1; }
.bcr-rec-win { margin-top: 11px; font-size: 13px; line-height: 1; }
.bcr-rec-net { margin-top: 13px; font-size: 15px; line-height: 1; }
.bcr-rec-bonus { margin-top: 8px; }
.bcr-rec.is-player .bcr-rec-mark { border-color: #2f7bf5; color: #2f7bf5; }
.bcr-rec.is-banker .bcr-rec-mark { border-color: #eda800; color: #eda800; }
.bcr-rec.is-tie    .bcr-rec-mark { border-color: #3fbd8e; color: #3fbd8e; }

/* ---------- 오른쪽 정보 레일 ---------- */
.bcr-card { padding: 16px 16px 12px; border-radius: 20px; }
.bcr-card-h { font-size: 17px; margin-bottom: 4px; line-height: 1.4; }
.bcr-info-row { padding: 3.5px 0; border-bottom: 0; }
.bcr-info-row dt { font-size: 13.5px; }
.bcr-info-row dd { font-size: 13px; }
.bcr-info-row dd b { font-size: 15px; }
.bcr-pnl { margin-top: 6px; padding: 8px 14px; border-radius: 13px; }
.bcr-pnl > span { font-size: 13.5px; }
.bcr-pnl > b { font-size: 15px; }
.bcr-rules { padding-left: 0; list-style: none; }
.bcr-rules li {
  position: relative; padding-left: 15px; margin-bottom: 10px;
  font-size: 13.5px; line-height: 1.6;
}
.bcr-rules li:last-child { margin-bottom: 0; }
.bcr-rules li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: #b9c8dd;
}
.bcr-bonus-row { padding: 11px 12px; }
.bcr-bonus-n { font-size: 13.5px; }
.bcr-bonus-v { font-size: 13.5px; }
.bcr-bonus-note { margin-top: 8px; font-size: 11.5px; }
.bcr-histbtn { padding: 16px; border-radius: 18px; font-size: 15px; }

/* ---------- 하단 안내 ---------- */
.bcr-foot-note { margin-top: 20px; font-size: 13px; }
.bcr-foot-duck { width: 22px; height: 22px; }

/* 말풍선 두 줄 (시안: 첫 줄 진한 남색 굵게 · 둘째 줄 연한 글씨) */
.bcr-bubble-t { display: block; font-size: 14.5px; font-weight: 900; color: #16305e; }
.bcr-bubble-s { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; color: #6a7c99; }

/* 연승 보너스 왕관 */
.bcr-bonus-n { display: flex; align-items: center; gap: 7px; }
.bcr-crown { color: #2c4a80; flex: none; }
.bcr-bonus-row.is-next .bcr-crown { color: #8a6a12; }
.bcr-bonus-row.is-done .bcr-crown { color: #9aa7bd; }

/* 게임 규칙 — 시안과 같은 줄바꿈 (한국어는 낱말 단위로만 줄을 바꾼다) */
.bcr-rules li { font-size: 13px; word-break: keep-all; }
.bcr-bubble { word-break: keep-all; }
