/* NX Shashka — shashka figuralari va doska qo'shimchalari */
.ck {
  position: absolute; left: 11%; top: 11%; width: 78%; height: 78%; border-radius: 50%; z-index: 2; pointer-events: none;
  will-change: transform;
}
.ck::before, .ck::after { content: ""; position: absolute; border-radius: 50%; }
.ck.w {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4ede2 45%, #d8cbb7 100%);
  box-shadow: 0 3px 0 #a8977f, 0 6px 10px rgba(0, 0, 0, .35), inset 0 -2px 3px rgba(0, 0, 0, .12);
}
.ck.w::before { inset: 16%; border: 2px solid rgba(150, 128, 98, .45); }
.ck.w::after { inset: 30%; border: 2px solid rgba(150, 128, 98, .3); }
.ck.b {
  background: radial-gradient(circle at 35% 30%, #5a504a 0%, #2b2522 50%, #141110 100%);
  box-shadow: 0 3px 0 #0a0807, 0 6px 10px rgba(0, 0, 0, .45), inset 0 1px 2px rgba(255, 255, 255, .12);
}
.ck.b::before { inset: 16%; border: 2px solid rgba(255, 255, 255, .13); }
.ck.b::after { inset: 30%; border: 2px solid rgba(255, 255, 255, .08); }
.ck.k::after {
  inset: 22%; border: 0;
  background: center / 70% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18l-1.5-9-4.5 4-3-7-3 7-4.5-4z' fill='%23c8894a' stroke='%238a5a2b' stroke-width='1.2' stroke-linejoin='round'/%3E%3Crect x='3.5' y='18.6' width='17' height='2.6' rx='1' fill='%23c8894a'/%3E%3C/svg%3E");
}
.ck.b.k::after { filter: brightness(1.15); }
.sq .ck.ghosted { opacity: .3; }
.sq .ck.taken { opacity: .35; filter: grayscale(.6); }
.drag-ghost .ck { left: 0; top: 0; width: 100%; height: 100%; }
.sq.must::before { box-shadow: inset 0 0 0 4px rgba(255, 214, 89, .85); }
.sq.path::before { background: rgba(255, 214, 89, .35); }
.sq.capd::before { background: rgba(226, 103, 90, .35); }
.ck-board.interactive .sq.own { cursor: grab; }

/* modal ichidagi kichik shashkalar */
.sw-pc .ck { position: relative; display: block; left: auto; top: auto; width: 40px; height: 40px; }
.rules p { margin: 0 0 7px; color: var(--tx); font-size: 14px; line-height: 1.5; }
.rules p:last-child { margin-bottom: 0; }
.rules b { color: var(--acc2); }
#btnRules { font-weight: 800; font-size: 17px; }
.pc-count { font-size: 12px; color: var(--mut); display: flex; align-items: center; gap: 6px; }
.pc-count .dotp { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pc-count .dotp.w { background: #efe6d8; box-shadow: 0 1px 0 #a8977f; }
.pc-count .dotp.b { background: #2b2522; box-shadow: 0 1px 0 #000; border: 1px solid #4a403a; }
.sq.hint::before { background: rgba(224, 165, 101, .38); box-shadow: inset 0 0 0 4px rgba(224, 165, 101, .95); }

/* ---------- animatsiyalar ---------- */
.ck { transition: transform .18s cubic-bezier(.3,.8,.4,1), box-shadow .18s; }
.sq.sel .ck { transform: translateY(-7%) scale(1.09); }
.sq.sel .ck.w { box-shadow: 0 3px 0 #a8977f, 0 14px 18px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 214, 89, .55); }
.sq.sel .ck.b { box-shadow: 0 3px 0 #0a0807, 0 14px 18px rgba(0, 0, 0, .55), 0 0 0 3px rgba(255, 214, 89, .55); }
.ck-board.interactive .sq.own:hover .ck { transform: translateY(-3%) scale(1.04); }
@keyframes mustPulse {
  0%, 100% { box-shadow: inset 0 0 0 3px rgba(255, 214, 89, .95); }
  50% { box-shadow: inset 0 0 0 7px rgba(255, 214, 89, .35); }
}
.sq.must::before { animation: mustPulse 1.1s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.3); } }
.ck-board .sq.mv::after { animation: dotPulse 1.2s ease-in-out infinite; background: rgba(20, 30, 20, .32); }
@keyframes hintPulse {
  0%, 100% { background: rgba(224, 165, 101, .28); box-shadow: inset 0 0 0 3px rgba(224, 165, 101, .95); }
  50% { background: rgba(224, 165, 101, .5); box-shadow: inset 0 0 0 6px rgba(224, 165, 101, .6); }
}
.sq.hint::before { animation: hintPulse .9s ease-in-out infinite; }
.ck.pre-crown::after { opacity: 0; }
.ck.k.crowned::after { animation: crownPop .65s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes crownPop { 0% { transform: scale(0) rotate(-35deg) translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.fx-cap { position: absolute; z-index: 8; pointer-events: none; }
.fx-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; z-index: 9; }
.fx-dot.w { background: #fffaf0; box-shadow: 0 0 6px rgba(255, 240, 200, .9); }
.fx-dot.b { background: #ffb35c; box-shadow: 0 0 8px rgba(255, 150, 60, .9); }
.fx-ring { position: absolute; border-radius: 50%; border: 3px solid rgba(255, 214, 89, .95); pointer-events: none; z-index: 12;
  box-shadow: 0 0 18px rgba(255, 214, 89, .6), inset 0 0 12px rgba(255, 214, 89, .4); }
@keyframes thinkPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 137, 74, .5); } 50% { box-shadow: 0 0 0 7px rgba(200, 137, 74, 0); } }
.player-card.thinking .pc-ava { animation: thinkPulse 1.2s ease-in-out infinite; border-color: var(--acc); }
.think-d { color: var(--mut); font-weight: 500; font-size: 12.5px; }
@keyframes winGlow {
  0% { box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 0 rgba(255, 214, 89, .0); }
  30% { box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 8px rgba(255, 214, 89, .55), 0 0 60px rgba(255, 214, 89, .5); }
  100% { box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 0 rgba(255, 214, 89, 0); }
}
.board-wrap.win-glow { animation: winGlow 2.2s ease-out 2; }
@media (prefers-reduced-motion: reduce) {
  .sq.must::before, .ck-board .sq.mv::after, .sq.hint::before, .player-card.thinking .pc-ava { animation: none; }
}
