/* One temporary annotation layer, below pieces/coordinates and independent of
   last-move borders, authored focus, legal dots and arrows. */
.board [data-square]{position:relative}
.board .cw-user-highlight::before{content:"";position:absolute;inset:0;background:rgba(224,76,83,.36);outline:2px solid rgba(137,28,42,.7);outline-offset:-2px;pointer-events:none;z-index:0}
.board .cw-user-highlight>img{position:relative;z-index:1}
.board{position:relative}
.board .cw-user-arrow-layer{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:hidden;opacity:.78}
.board .cw-user-arrow-layer polygon{stroke:rgba(18,34,58,.3);stroke-width:.16;stroke-linejoin:round}

/* Prevent Safari scrolling/image callouts only on draggable board pieces. */
.board [draggable="true"]{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.cw-touch-drag-ghost .piece{visibility:visible!important;pointer-events:none}
.cw-touch-drag-ghost img{width:100%;height:100%;object-fit:contain;pointer-events:none}
