/* Carrom — scoped under .carrom */
.carrom { display: grid; gap: 12px; width: 100%; margin-inline: auto; justify-items: center; }

.cr-score {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
}
.cr-player {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 8px 12px; border-radius: var(--pill);
  background: var(--surface-2);
  transition: box-shadow .2s, background-color .2s;
}
.cr-player[data-p="1"] { flex-direction: row-reverse; text-align: right; }
.cr-player.is-turn { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.cr-name { font-weight: 620; font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.cr-player b { font-variant-numeric: tabular-nums; font-weight: 720; font-size: var(--t-sm); white-space: nowrap; }
.cr-coin { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgb(0 0 0 / .14); }
.cr-coin--w { background: #F6F0E3; box-shadow: inset 0 0 0 3px #D5C8B2; }
.cr-coin--b { background: #2E2A28; box-shadow: inset 0 0 0 3px #4F4845; }
.cr-coin--q { background: #D7263D; box-shadow: inset 0 0 0 3px #A51A2D; width: 12px; height: 12px; }
.cr-queen { display: none; }
.cr-player.has-queen .cr-queen { display: block; }
.cr-mid { font-size: var(--t-xs); color: var(--muted); font-weight: 600; text-align: center; }

.cr-board {
  position: relative;
  border-radius: 22px;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  box-shadow: var(--lift);
}
.cr-board canvas { width: 100%; height: 100%; border-radius: 22px; }
.cr-board .k-overlay { border-radius: 22px; }

.cr-controls { width: 100%; display: grid; gap: 8px; justify-items: center; }
.cr-status { font-weight: 640; min-height: 1.5em; text-align: center; }
.cr-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.cr-hint { color: var(--muted); font-size: var(--t-sm); text-align: center; }

/* Striker placement slider */
.cr-slider {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 44px; background: transparent; margin: 0; cursor: pointer;
}
.cr-slider:disabled { opacity: .35; cursor: default; }
.cr-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: var(--surface-2); }
.cr-slider::-moz-range-track { height: 8px; border-radius: 99px; background: var(--surface-2); }
.cr-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 34px; height: 34px; margin-top: -13px; border-radius: 50%;
  background: #FBFBFD; border: 5px solid var(--ink); box-shadow: 0 2px 6px rgb(0 0 0 / .25);
}
.cr-slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: #FBFBFD; border: 5px solid var(--ink); box-shadow: 0 2px 6px rgb(0 0 0 / .25);
}
.cr-slider:focus-visible { outline: none; }
.cr-slider:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 2px; }

.cr-modes { width: 100%; }
.cr-modes button { flex: 1; }
