/* ============================================================
   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단 배치 ---------- */
.bcr-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 14px; align-items: start; }
.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-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-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);
}

/* 카드 */
.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: 46px; height: 64px; 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 { cursor: not-allowed; filter: grayscale(.25) brightness(.99); }

/* 칩 */
.bcr-chips { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 16px 4px; }
.bcr-chip {
  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~4번째)로 정한다 — 관리자가 금액을 바꿔도 색이 유지된다 */
.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.is-picked { box-shadow: 0 0 0 3px #16305e, 0 6px 14px rgba(20, 50, 100, .3); transform: translateY(-2px); }
/* 올인 칩 — 4번째 자리 */
.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;
  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: not-allowed; box-shadow: none; filter: grayscale(.2); }

/* ---------- 최근 결과 ---------- */
.bcr-road { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bcr-dot {
  display: flex; align-items: center; justify-content: center;
  height: 30px; 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; }
