/* Bagh-Chal — a brass-and-walnut board with tiger and goat tokens. The board itself is drawn on the canvas. */
.bc-col { padding: 2px 6px 6px; gap: 6px; }
.bc-wrap { direction: ltr; flex: 0 1 auto; aspect-ratio: 1 / 1; max-width: 600px; }
.bc-wrap canvas { cursor: pointer; touch-action: manipulation; }

.bc-status { gap: 8px; min-height: 30px; font-size: 0.97rem; line-height: 1.2; text-align: center; }
.bc-pip { flex: none; display: inline-block; width: 15px; height: 15px; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.bc-pip--tiger { background: radial-gradient(circle at 35% 30%, #FFC057, #EE8F28 55%, #B4560F); border: 2px solid #3A1C0A; }
.bc-pip--goat { background: radial-gradient(circle at 35% 30%, #FFFFFF, #F1EAD6 55%, #B9A67A); }
.bc-pip--cap { background: var(--w-vermilion); }

/* the hunt at a glance: goats still to enter, goats lost, tigers penned in */
.bc-tally { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; max-width: 600px; padding: 0 2px; }
.bc-stat { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 6px 6px; border-radius: 12px; border: 1px solid var(--hairline); background: rgba(234, 217, 168, 0.06); font-size: 12.5px; color: var(--mist); transition: border-color 0.2s linear, background-color 0.2s linear; }
.bc-stat span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-stat b { direction: ltr; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--parchment); }
.bc-stat.is-hot { border-color: var(--w-vermilion); background: rgba(226, 85, 58, 0.14); }

/* the new-game panel */
.bc-opts { display: grid; gap: 12px; text-align: start; }
.bc-opt { transition: opacity 0.2s linear; }
.bc-opt.is-off { opacity: 0.35; pointer-events: none; }
.bc-opt__label { margin: 0 0 5px; font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
html[lang="ar"] .bc-opt__label { letter-spacing: 0; font-size: 13px; }
.bc-opts .fa-seg { display: flex; width: 100%; border-radius: 16px; }
.bc-opts .fa-seg button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 4px 6px; border-radius: 13px; line-height: 1.15; }

@media (max-width: 360px) {
  .bc-status { font-size: 0.9rem; min-height: 26px; }
  .bc-col { gap: 4px; }
  .bc-stat { padding: 5px 3px; gap: 4px; font-size: 11.5px; }
  .bc-stat .bc-pip { width: 11px; height: 11px; }
}
/* a phone on its side: status, board and tally sit in a row so the board keeps the full height */
@media (orientation: landscape) and (max-height: 500px) {
  .bc-col { flex-direction: row; gap: 14px; padding: 4px 12px; }
  .bc-wrap { flex: 0 0 auto; width: auto; height: 100%; }
  .bc-status { flex: 1 1 0; min-width: 0; flex-wrap: wrap; }
  .bc-tally { flex: 1 1 0; min-width: 0; width: auto; grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bc-stat, .bc-opt { transition: none; } }
