/* Capture Go — a kaya-wood goban with slate and shell stones. The board itself is drawn on the canvas. */
.cg-col { padding: 2px 6px 6px; gap: 6px; }
.cg-wrap { direction: ltr; flex: 0 1 auto; aspect-ratio: 1 / 1; max-width: 600px; }
.cg-wrap canvas { cursor: pointer; touch-action: manipulation; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }

.cg-status { gap: 8px; min-height: 30px; font-size: 0.97rem; line-height: 1.2; text-align: center; }
.cg-pip { flex: none; display: inline-block; width: 15px; height: 15px; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.cg-pip--a { background: radial-gradient(circle at 35% 30%, #6E6C7C, #2A2933 55%, #0D0C13); box-shadow: 0 0 0 1px rgba(251, 243, 234, 0.35); }
.cg-pip--b { background: radial-gradient(circle at 35% 30%, #FFFFFF, #F6F0E4 55%, #C6B99F); }

.cg-legend { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; min-height: 22px; font-size: 12.5px; line-height: 1.2; color: var(--mist); text-align: center; }
.cg-pulse { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--w-torii); animation: cg-pulse 1.4s ease-in-out infinite; }
@keyframes cg-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 69, 47, 0.7); } 50% { box-shadow: 0 0 0 5px rgba(224, 69, 47, 0); } }

/* the one-picture rule on the start and rules panels */
.cg-pic { display: grid; gap: 8px; justify-items: center; margin-bottom: 4px; }
.cg-pic__art { direction: ltr; width: 100%; max-width: 300px; }
.cg-pic__art svg { display: block; width: 100%; height: auto; }
.cg-pic__glow { animation: cg-glow 1.4s ease-in-out infinite; }
@keyframes cg-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.cg-pic__cap { margin: 0; font-size: 0.95rem; line-height: 1.35; color: var(--parchment); text-align: center; }
.cg-pic + ol, .cg-pic > ol, .cg-pic > ul { text-align: start; }

/* the new-game panel */
.cg-opts { display: grid; gap: 12px; text-align: start; }
.cg-opt { transition: opacity 0.2s linear; }
.cg-opt.is-off { opacity: 0.35; pointer-events: none; }
.cg-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"] .cg-opt__label { letter-spacing: 0; font-size: 13px; }
.cg-opts .fa-seg { display: flex; width: 100%; border-radius: 16px; }
.cg-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) {
  .cg-status { font-size: 0.9rem; min-height: 26px; }
  .cg-col { gap: 4px; }
  .cg-legend { font-size: 11.5px; }
}
/* a phone on its side: status and legend sit beside the board so it keeps the full height */
@media (orientation: landscape) and (max-height: 500px) {
  .cg-col { flex-direction: row; gap: 14px; padding: 4px 12px; }
  .cg-wrap { flex: 0 0 auto; width: auto; height: 100%; }
  .cg-status, .cg-legend { flex: 1 1 0; min-width: 0; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .cg-pulse, .cg-pic__glow { animation: none; } }
