/* Chinese Checkers — board + UI. Self-contained; mirrors the warm look of the
   main checkers game. */

.cck-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 12px 28px;
  width: 100%;
}

.cck-turn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #3a2a18;
  min-height: 26px;
}
.cck-chip {
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-block; box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.cck-chip-red { background: #D32F2F; }
.cck-chip-blue { background: #1565C0; }

.cck-board-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.cck-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  background: radial-gradient(circle at 50% 42%, #C9A86A 0%, #B58A4C 70%, #9A6E36 100%);
  border: 8px solid #8a5a24;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  touch-action: manipulation;
}

/* Holes & marbles (SVG circles styled via CSS). */
.cck-hole {
  fill: #efe0bf;
  stroke: #00000022;
  stroke-width: 1;
  cursor: default;
  transition: fill .12s;
}
.cck-hole.cck-red {
  fill: #D32F2F;
  stroke: #7e0e0e;
  stroke-width: 1.5;
  cursor: pointer;
}
.cck-hole.cck-blue {
  fill: #1565C0;
  stroke: #0a3a72;
  stroke-width: 1.5;
}
.cck-hole.cck-selected {
  stroke: #29B6F6;
  stroke-width: 3.5;
}
.cck-hole.cck-target {
  fill: #8BC98E;
  stroke: #2e7d32;
  stroke-width: 2;
  cursor: pointer;
}

.cck-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cck-mode {
  font-size: 13px;
  font-weight: 600;
  color: #6b5436;
}
.cck-new {
  appearance: none;
  border: none;
  background: #1A3A6B;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s;
}
.cck-new:hover { background: #21478a; }

/* Result overlay */
.cck-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,12,4,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.cck-overlay.cck-hidden { display: none; }
.cck-card {
  background: #FBF5E6;
  border-radius: 18px;
  padding: 30px 36px;
  text-align: center;
  box-shadow: 0 16px 50px rgba(0,0,0,.4);
}
.cck-emoji { font-size: 46px; }
.cck-title { font-size: 26px; font-weight: 800; color: #B8651F; margin: 6px 0 18px; }
.cck-card-btn {
  appearance: none; border: none;
  background: #1A3A6B; color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 11px 26px; border-radius: 10px; cursor: pointer;
}
.cck-card-btn:hover { background: #21478a; }
