/* TJK-Chess 15.1.60 — one interaction language for all playable boards.
   Matches the live-play board: green board, gold last move, gold selection,
   neutral-gray destination dot and a ring around capturable pieces. */

.analysis-square.is-light,
.computer-square.is-light,
.puzzle-square.is-light,
.game-review-square.is-light,
.study-square.is-light,
.icc-course-square.is-light { background:#eeeecf!important; }
.live-square.light,
.position-play-square.light,
.tjk-video-square.light,
.endgame-study-square.is-light,
.training-board-square.light { background:#eeeecf!important; }

.analysis-square.is-dark,
.computer-square.is-dark,
.puzzle-square.is-dark,
.game-review-square.is-dark,
.study-square.is-dark,
.icc-course-square.is-dark { background:#789b59!important; }
.live-square.dark,
.position-play-square.dark,
.tjk-video-square.dark,
.endgame-study-square.is-dark,
.training-board-square.dark { background:#789b59!important; }

.analysis-square.is-last,
.computer-square.is-last,
.live-square.is-last,
.puzzle-square.is-last,
.position-play-square.is-last,
.game-review-square.is-last,
.study-square.is-last,
.tjk-video-square.is-last,
.endgame-study-square.is-last,
.training-board-square.is-last,
.icc-course-square.is-last {
  box-shadow:inset 0 0 0 999px rgba(245,196,66,.32)!important;
}

.analysis-square.is-selected,
.game-review-square.is-selected,
.computer-square.is-selected,
.live-square.is-selected,
.puzzle-square.is-selected,
.position-play-square.is-selected,
.study-square.is-selected,
.tjk-video-square.is-selected,
.endgame-study-square.is-selected,
.training-board-square.is-selected,
.icc-course-square.is-selected {
  box-shadow:inset 0 0 0 4px rgba(241,196,25,.96)!important;
}

/* Remove older outline-based selection decorations so boards look identical. */
.analysis-square.is-selected::before,
.analysis-square.is-selected::after,
.computer-square.is-selected::after,
.puzzle-square.is-selected::after,
.position-play-square.is-selected::before,
.study-square.is-selected::after,
.tjk-video-square.is-selected::before,
.endgame-study-square.is-selected::before,
.training-board-square.is-selected::before,
.icc-course-square.is-selected::before { border-color:transparent!important; }

/* Quiet legal destination. */
.analysis-square.is-legal-target:not(.is-capture-target)::after,
.computer-square.is-legal-target:not(.is-capture-target)::before,
.puzzle-square.is-legal-target:not(.is-capture-target)::after,
.study-square.is-legal-target:not(.is-capture-target)::before,
.icc-course-square.is-legal-target:not(.is-capture-target)::after,
.live-square.is-legal::after,
.position-play-square.is-legal::after,
.game-review-square.is-legal::before,
.tjk-video-square.is-legal::after,
.endgame-study-square.is-legal::after,
.training-board-square.is-legal::after {
  content:""!important;
  position:absolute!important;
  inset:auto!important;
  width:22%!important;
  height:auto!important;
  aspect-ratio:1!important;
  border:0!important;
  border-radius:50%!important;
  background:rgba(44,51,58,.36)!important;
  box-shadow:none!important;
  z-index:4!important;
  pointer-events:none!important;
}

/* Capture destination. */
.analysis-square.is-capture-target::after,
.computer-square.is-capture-target::before,
.puzzle-square.is-capture-target::after,
.study-square.is-capture-target::before,
.icc-course-square.is-capture-target::after,
.live-square.is-capture::after,
.position-play-square.is-capture::after,
.game-review-square.is-capture::before,
.tjk-video-square.is-capture::after,
.endgame-study-square.is-capture::after,
.training-board-square.is-capture::after {
  content:""!important;
  position:absolute!important;
  inset:11%!important;
  width:auto!important;
  height:auto!important;
  aspect-ratio:auto!important;
  border:5px solid rgba(44,51,58,.34)!important;
  border-radius:50%!important;
  background:transparent!important;
  box-sizing:border-box!important;
  z-index:4!important;
  pointer-events:none!important;
}

/* Drag target remains visible without replacing the legal-move language. */
.analysis-square.is-legal-target,
.computer-square.is-legal-target,
.puzzle-square.is-legal-target,
.study-square.is-legal-target,
.icc-course-square.is-legal-target { outline:none!important; box-shadow:none!important; }

/* Coordinates use the same two-tone convention as the play board. */
.analysis-square.is-light .analysis-coordinate,
.computer-square.is-light .computer-coordinate,
.puzzle-square.is-light .puzzle-coordinate,
.game-review-square.is-light .game-review-coordinate,
.study-square.is-light .study-coord,
.icc-course-square.is-light .icc-course-coordinate { color:#789b59!important; }
.analysis-square.is-dark .analysis-coordinate,
.computer-square.is-dark .computer-coordinate,
.puzzle-square.is-dark .puzzle-coordinate,
.game-review-square.is-dark .game-review-coordinate,
.study-square.is-dark .study-coord,
.icc-course-square.is-dark .icc-course-coordinate { color:#eeeecf!important; }

/* v15.1.60: Game Review uses the same selected/legal markers as every TJK board. */
.game-review-square.is-selected{box-shadow:inset 0 0 0 4px rgba(241,196,25,.96)!important}
.game-review-square.is-selected::after{content:none!important}
.game-review-square.is-legal::before{content:""!important;position:absolute!important;inset:auto!important;width:22%!important;height:22%!important;aspect-ratio:1!important;border:0!important;border-radius:50%!important;background:rgba(44,51,58,.36)!important;z-index:4!important;pointer-events:none!important}
.game-review-square.is-capture::before{content:""!important;position:absolute!important;inset:11%!important;width:auto!important;height:auto!important;border:5px solid rgba(44,51,58,.34)!important;border-radius:50%!important;background:transparent!important;z-index:4!important;pointer-events:none!important}

/* v15.1.61: exact in-square drag target marker on every interactive board. */
.analysis-square.is-drop-target,
.computer-square.is-drop-target,
.live-square.is-drop-target,
.puzzle-square.is-drop-target,
.position-square.is-drop-target,
.position-play-square.is-drop-target,
.position-play-square.is-drop,
.game-review-square.is-drop-target,
.study-square.is-drop-target,
.tjk-video-square.is-drop-target,
.training-board-square.is-drop-target,
.icc-course-square.is-drop-target,
.icc-course-square.is-legal-hover,
.icc-admin-square.is-legal-hover,
.endgame-study-square.is-selected,
.endgame-study-square.is-drop,
.opp-square.is-drag-hover {
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: inset 0 0 0 4px #f2c21a !important;
}
/* The old study marker used a 5% inset pseudo-element. The common marker above
   now owns selection/drop borders so the edge is pixel-perfect. */
.endgame-study-square.is-selected::after,
.endgame-study-square.is-drop::after {
  content: none !important;
}
