/* Checkers — a diner-table checkerboard. The board itself is drawn on the canvas in game.js. */
.ck-col { padding: 4px 5px 6px; gap: 0; }
.ck-wrap { direction: ltr; }
.ck-wrap canvas { cursor: pointer; }

/* The status line rides just above the board; game.js sets its top. */
.ck-status {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1;
  height: 36px;
  min-height: 0;
  padding: 0 8px;
  gap: 8px;
  line-height: 1.15;
  color: var(--parchment);
  pointer-events: none;
  transition: opacity 0.2s linear;
}
html[dir="rtl"] .ck-status { direction: rtl; }
.ck-status.is-note { color: var(--gold); }
.ck-status.is-off { opacity: 0; }
/* On a low, wide screen there is no room above the board, so it sits beside it. */
.ck-status.is-side {
  top: 50%; right: auto;
  flex-direction: column;
  height: auto;
  transform: translateY(-50%);
}

.ck-dot { width: 15px; height: 15px; }
.ck-dot--1 { background: radial-gradient(circle at 35% 30%, #FF917F, var(--w-red) 55%, #A61E27); box-shadow: 0 0 0 1.5px rgba(255, 241, 214, 0.75); }
.ck-dot--2 { background: radial-gradient(circle at 35% 30%, #6A90CF, #27426F 55%, var(--w-navy)); box-shadow: 0 0 0 1.5px var(--w-sky); }

/* Piece counts in the top bar: a stripe in the side's colour, and a mustard ring on the side to move. */
.ck-chip { transition: box-shadow 0.2s linear; }
.ck-chip--red { box-shadow: inset 0 -3px 0 var(--w-red), inset 0 0 0 1px var(--hairline); }
.ck-chip--navy { box-shadow: inset 0 -3px 0 var(--w-sky), inset 0 0 0 1px var(--hairline); }
.ck-chip--red.is-turn { box-shadow: inset 0 -3px 0 var(--w-red), inset 0 0 0 2px var(--gold); }
.ck-chip--navy.is-turn { box-shadow: inset 0 -3px 0 var(--w-sky), inset 0 0 0 2px var(--gold); }

/* "Who are you playing?" */
.ck-setup { display: grid; justify-items: center; gap: 10px; }
.ck-level { transition: opacity 0.2s linear; }
.ck-level.is-off { opacity: 0.35; pointer-events: none; }

/* The whole name stays readable beside two chips on a narrow phone. */
html[lang="ar"] .ck-title { font-size: 1.05rem; }

@media (max-width: 360px) {
  .ck-title { font-size: 1rem; }
  html[lang="ar"] .ck-title { font-size: 0.86rem; }
  .ck-chip { min-width: 46px; padding-left: 6px; padding-right: 6px; }
  .ck-status { font-size: 0.94rem; }
  .ck-setup .fa-seg button { padding: 0 10px; font-size: 0.86rem; }
}
