/* 또또스쿨 보드게임 공통 화면: 왼쪽 판 + 오른쪽 정보창 */
.bg-wrap { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 28%); gap: 12px; padding: 10px; background: var(--bg-back, linear-gradient(135deg, #2f3b52, #1f2738)); }
.bg-boardbox { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
.bg-boardbox > svg, .bg-boardbox > .bg-board { height: 100%; max-height: calc(100vh - 100px); width: auto; max-width: 100%; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .4)); }
.bg-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; color: #fff; }
.bg-card { background: rgba(255, 255, 255, .12); border-radius: 18px; padding: 12px 14px; }
.bg-turn { font-family: var(--sp-font-display); font-size: clamp(20px, 3.2vh, 28px); display: flex; align-items: center; gap: 10px; }
.bg-turn i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; display: inline-block; flex: none; }
.bg-msg { min-height: 24px; font-size: 16px; color: #ffd84d; font-weight: 800; word-break: keep-all; }
.bg-score { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; }
.bg-score div { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 6px; }
.bg-score b { display: block; font-family: var(--sp-font-num); font-size: 30px; }
.bg-score small { font-size: 14px; }
.bg-log { flex: 1; overflow: auto; font-size: 15px; line-height: 1.7; min-height: 40px; }
.bg-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.bg-btns button { min-height: 48px; border: 0; border-radius: 14px; background: #fff; color: #26332f; font-family: var(--sp-font-display); font-size: 17px; cursor: pointer; }
.bg-btns button:disabled { opacity: .45; cursor: default; }
.bg-hit { fill: transparent; cursor: pointer; }
.bg-hit:hover { fill: rgba(255, 255, 255, .18); }
@media (max-width: 760px) {
  .bg-wrap { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .bg-side { order: -1; flex-direction: row; flex-wrap: wrap; }
  .bg-log { display: none; }
  .bg-card { flex: 1; padding: 8px 10px; }
  .bg-turn { font-size: 18px; gap: 6px; }
  .bg-turn i { width: 16px; height: 16px; }
  .bg-msg { font-size: 14px; min-height: 0; }
  .bg-score small { font-size: 12px; white-space: nowrap; }
  .bg-score b { font-size: 24px; }
  .bg-btns { grid-template-columns: 1fr; }
  .bg-btns button { min-height: 40px; font-size: 15px; padding: 0 8px; }
  .bg-boardbox > svg, .bg-boardbox > .bg-board { max-height: calc(100vh - 240px); }
}
