/* clicktomove.css - boards where you can move by tapping a piece and then a square (js/modules/clicktomove.js):
   My games, Repertoire explorer, Prepare and Annotate. */

/* the selected piece and the squares it can go to */
.sq-selected { box-shadow: inset 0 0 0 100px rgba(255, 214, 10, .45); }
.sq-target { position: relative; }
.sq-target::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(20, 20, 20, .32); pointer-events: none; z-index: 2; }
.sq-target:has(img)::after { width: 86%; height: 86%; background: none; border: 4px solid rgba(20, 20, 20, .32); box-sizing: border-box; }
.ctm-board [data-square] { cursor: pointer; }

/* phones: two quick taps must not zoom the page, and a long press on a piece must not open the "save image" menu */
.ctm-board { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.ctm-board img { -webkit-touch-callout: none; -webkit-user-drag: none; }
