/* V4: every coloured start square is a shared safe square. Visual effects only. */
#board.board:not(.polygon-board).turn-red::after,
#board.board:not(.polygon-board).turn-green::after,
#board.board:not(.polygon-board).turn-yellow::after,
#board.board:not(.polygon-board).turn-blue::after{
  content:"";position:absolute;inset:0;z-index:9;pointer-events:none;
  background:rgba(255,255,255,.50);
  animation:v4BoardFlash 1.1s ease-in-out infinite;
}
#board.board:not(.polygon-board).turn-red::after{clip-path:polygon(0 0,40% 0,40% 40%,0 40%)}
#board.board:not(.polygon-board).turn-green::after{clip-path:polygon(60% 0,100% 0,100% 40%,60% 40%)}
#board.board:not(.polygon-board).turn-yellow::after{clip-path:polygon(60% 60%,100% 60%,100% 100%,60% 100%)}
#board.board:not(.polygon-board).turn-blue::after{clip-path:polygon(0 60%,40% 60%,40% 100%,0 100%)}
@keyframes v4BoardFlash{0%,100%{opacity:.10}50%{opacity:.75}}
#board.board.turn-red .home-plate.red,
#board.board.turn-green .home-plate.green,
#board.board.turn-yellow .home-plate.yellow,
#board.board.turn-blue .home-plate.blue{
 animation:v4StartPlateFlash 1.1s ease-in-out infinite;
}
@keyframes v4StartPlateFlash{0%,100%{filter:brightness(1);border-color:#e6d5bb}50%{filter:brightness(1.32);border-color:#fff7b5}}
#board.board.polygon-board .poly-sector.poly-active{
 animation:v4SectorTurnFlash 1.12s ease-in-out infinite!important;
}
@keyframes v4SectorTurnFlash{
 0%,100%{fill-opacity:.94;filter:brightness(1)}
 50%{fill-opacity:.57;filter:brightness(1.45)}
}
#board .cell.safe:not(.center){position:relative}
#board.polygon-board .poly-cell.poly-start{
 box-shadow:0 0 0 1px #fff9b8,inset 0 1px 2px #ffffffb0,0 2px 5px #09223b99!important;
}
#centerDice.center-dice{
 width:clamp(34px,8.4vw,45px)!important;
 height:clamp(34px,8.4vw,45px)!important;
 background:rgba(255,255,255,.26)!important;
 opacity:.64!important;
 border:2px solid rgba(247,221,166,.72)!important;
 border-radius:11px!important;
 box-shadow:0 2px 4px #091e3c40,0 0 0 1px #fff5!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
}
#centerDice.center-dice:not(:disabled){
 opacity:.78!important;
}
#centerDiceFace{
 color:#142b48!important;
 text-shadow:0 1px 1px #ffffffaa!important;
 font-size:clamp(22px,5.5vw,31px)!important;
}
@media(prefers-reduced-motion:reduce){
 #board.board.turn-red .home-plate.red,
 #board.board.turn-green .home-plate.green,
 #board.board.turn-yellow .home-plate.yellow,
 #board.board.turn-blue .home-plate.blue,
 #board.board.polygon-board .poly-sector.poly-active{animation:none!important}
 #board.board:not(.polygon-board)::after{animation:none!important;opacity:.26!important}
}
