/* 오목·장기 같은 판 게임 공통(클래식 나무판) */
.bd-stage { position: relative; width: min(620px, calc(100svh - 150px)); aspect-ratio: 1; margin: 0 auto; border-radius: 10px;
  padding: 10px; background: linear-gradient(135deg, #7a4a22, #5b3416); box-shadow: 0 2px 0 #3e220d, 0 18px 40px -16px rgba(0,0,0,.55); }
.bd-stage.tall { aspect-ratio: 9 / 10; width: min(600px, calc((100svh - 150px) * 0.9)); }
.bd-stage canvas { display: block; width: 100%; height: 100%; border-radius: 4px; touch-action: manipulation; cursor: pointer; }
@media (max-width: 860px) { .bd-stage { width: min(100%, calc(100svh - 110px)); padding: 6px; } .bd-stage.tall { width: min(100%, calc((100svh - 110px) * 0.9)); } }
.bd-result { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; border-radius: 10px;
  background: rgba(20, 12, 4, .55); color: #fff; }
.bd-result.show { display: flex; animation: bd-in .3s ease; }
@keyframes bd-in { from { opacity: 0; } }
.bd-result > div { background: rgba(43, 26, 10, .92); border: 2px solid #c99a55; border-radius: 14px; padding: 22px 28px; min-width: 220px;
  font-family: "Nanum Myeongjo", "Batang", "Noto Serif KR", "Noto Serif CJK KR", serif; }
.bd-r-title { margin: 0 0 6px; font-size: 34px; font-weight: 800; color: #ffe2a8; }
.bd-r-sub { margin: 0 0 16px; font-size: 15px; color: #f1dfc0; font-family: inherit; }
.bd-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 16px; }
.bd-status { margin: 0 0 12px; min-height: 24px; font-weight: 700; }
.bd-status.warn { color: var(--bad); }
.bd-opts { display: grid; gap: 8px; margin-bottom: 12px; }
.bd-opts label { display: grid; grid-template-columns: 70px minmax(0,1fr); align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.bd-opts select { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; padding: 0 8px; }
.bd-btns { display: flex; gap: 8px; }
.bd-btn { flex: 1; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.bd-btn.main { background: #8b5a2b; border-color: #8b5a2b; color: #fff; }
.bd-btn:disabled { opacity: .45; cursor: default; }
.bd-result .bd-btn { flex: none; padding: 0 24px; }
.bd-stats { list-style: none; margin: 0; padding: 0; }
.bd-stats li { display: flex; justify-content: space-between; padding: 8px 6px; border-top: 1px solid var(--line); font-size: 15px; }
.bd-stats li:first-child { border-top: 0; }
.bd-caps { display: flex; flex-wrap: wrap; gap: 4px; min-height: 30px; margin: 6px 0; }
