/* Seega — a board drawn in the sand with a finger. The board itself is drawn on the canvas. */
.sg-col { padding: 2px 6px 6px; gap: 6px; }
.sg-wrap { direction: ltr; flex: 0 1 auto; aspect-ratio: 1 / 1; max-width: 560px; }
.sg-wrap canvas { cursor: pointer; touch-action: manipulation; }

.sg-status { gap: 8px; min-height: 30px; font-size: 0.97rem; line-height: 1.2; text-align: center; }
.sg-pip { flex: none; display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); }
.sg-pip--a { background: radial-gradient(circle at 35% 30%, #8A7A70, #3A2C26 55%, #140D0A); }
.sg-pip--b { background: radial-gradient(circle at 35% 30%, #FFFFFF, #FBEFD9 50%, #C9A877); }

/* stones each side still has: in hand while placing, on the board while moving */
.sg-tally { direction: ltr; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; width: 100%; max-width: 560px; }
.sg-tally__label { margin: 0; text-align: center; font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist-dim); }
html[lang="ar"] .sg-tally__label { letter-spacing: 0; font-size: 12.5px; }
.sg-side { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px; border-radius: 12px; border: 1px solid transparent; opacity: 0.7; transition: opacity 0.2s linear, border-color 0.2s linear; }
.sg-side:last-child { justify-content: flex-end; }
.sg-side.is-turn { opacity: 1; border-color: var(--hairline); background: rgba(242, 160, 61, 0.1); }
.sg-side__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; color: var(--mist); }
.sg-side b { font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--parchment); }
.sg-side.is-low b { color: var(--w-sunset); }

/* the new-game panel */
.sg-opts { display: grid; gap: 12px; text-align: start; }
.sg-opt { transition: opacity 0.2s linear; }
.sg-opt.is-off { opacity: 0.35; pointer-events: none; }
.sg-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"] .sg-opt__label { letter-spacing: 0; font-size: 13px; }
.sg-opts .fa-seg { display: flex; width: 100%; border-radius: 16px; }
.sg-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) {
  .sg-status { font-size: 0.9rem; min-height: 26px; }
  .sg-col { gap: 4px; }
  .sg-side { padding: 4px 7px; gap: 6px; }
}
/* 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) {
  .sg-col { flex-direction: row; gap: 14px; padding: 4px 12px; }
  .sg-wrap { flex: 0 0 auto; width: auto; height: 100%; }
  .sg-status { flex: 1 1 0; min-width: 0; flex-wrap: wrap; }
  .sg-tally { flex: 1 1 0; min-width: 0; width: auto; grid-template-columns: 1fr; }
  .sg-side:last-child { flex-direction: row-reverse; }
}
