/* Fanorona — Madagascar's line board in ochre on dark wood. The board itself is drawn on the canvas. */
.fn-col { padding: 2px 6px 6px; gap: 4px; }
.fn-wrap { direction: ltr; }
.fn-wrap canvas { cursor: pointer; touch-action: manipulation; }

.fn-top { direction: ltr; flex: none; display: flex; align-items: center; gap: 6px; width: 100%; max-width: 760px; padding: 0 4px; }
.fn-status { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 4px; gap: 7px; font-size: 0.95rem; line-height: 1.2; }
html[lang="ar"] .fn-status { direction: rtl; }
.fn-count { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 12px; border: 1px solid transparent; opacity: 0.7; transition: opacity 0.2s linear, border-color 0.2s linear; }
.fn-count.is-turn { opacity: 1; border-color: var(--hairline); background: rgba(242, 160, 61, 0.1); }
.fn-count b { min-width: 1.3em; text-align: center; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--parchment); }
.fn-pip { flex: none; display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.fn-pip--a { background: radial-gradient(circle at 35% 30%, #FFFFFF, #FBEFD9 50%, #C9A56E); }
.fn-pip--b { background: radial-gradient(circle at 35% 30%, #8A5A3A, #3A1D10 55%, #140904); box-shadow: 0 0 0 1.5px var(--w-ochre), 0 1px 2px rgba(0, 0, 0, 0.5); }

/* the new-game panel */
.fn-opts { display: grid; gap: 12px; text-align: start; }
.fn-opt { transition: opacity 0.2s linear; }
.fn-opt.is-off { opacity: 0.35; pointer-events: none; }
.fn-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"] .fn-opt__label { letter-spacing: 0; font-size: 13px; }
.fn-opts .fa-seg { display: flex; width: 100%; border-radius: 16px; }
.fn-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) {
  .fn-status { font-size: 0.86rem; min-height: 34px; }
  .fn-count { padding: 4px 6px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .fn-count { transition: none; } }
