/* Realistic tactile material design for all playable boards in Manch Farsi V4. */
#board.board{
 border:clamp(4px,1vw,8px) solid #d7a65a!important;
 border-radius:clamp(13px,2.3vw,23px)!important;
 background:#ece6da!important;
 box-shadow:0 0 0 2px #fff0bb,0 0 0 5px #69411d,0 12px 26px #0008,inset 0 2px 2px #fff6d7!important;
 isolation:isolate;overflow:hidden!important;
}
#board.board:not(.polygon-board) .cell{
 background:linear-gradient(145deg,#fffefa 0%,#f4f0e8 48%,#e5ddcd 100%)!important;
 border:1px solid #aca08c!important;
 box-shadow:inset 0 2px 2px #ffffffea,inset 0 -2px 2px #8679654f!important;
}
#board.board:not(.polygon-board) .cell.base-red,#board.board:not(.polygon-board) .cell.base-green,
#board.board:not(.polygon-board) .cell.base-yellow,#board.board:not(.polygon-board) .cell.base-blue{
 border:0!important;box-shadow:none!important;
}
#board.board .cell.base-red,#board.board .cell.red{background:#ed2441!important}
#board.board .cell.base-green,#board.board .cell.green{background:#10b53b!important}
#board.board .cell.base-yellow,#board.board .cell.yellow{background:#ffd028!important}
#board.board .cell.base-blue,#board.board .cell.blue{background:#1397f4!important}
#board.board:not(.polygon-board) .cell.lane-red,#board.board:not(.polygon-board) .cell.start-red,
#board.board .cell.lane-red{background:linear-gradient(140deg,#ff727f,#ed2340 72%,#bd1332)!important;border-color:#ad2337!important}
#board.board:not(.polygon-board) .cell.lane-green,#board.board:not(.polygon-board) .cell.start-green,
#board.board .cell.lane-green{background:linear-gradient(140deg,#9af18c,#0dbd48 72%,#006c2b)!important;border-color:#188532!important}
#board.board:not(.polygon-board) .cell.lane-yellow,#board.board:not(.polygon-board) .cell.start-yellow,
#board.board .cell.lane-yellow{background:linear-gradient(140deg,#fff49c,#ffd333 72%,#c68d0b)!important;border-color:#b28e17!important}
#board.board:not(.polygon-board) .cell.lane-blue,#board.board:not(.polygon-board) .cell.start-blue,
#board.board .cell.lane-blue{background:linear-gradient(140deg,#a5eaff,#1a9ffc 72%,#0068b8)!important;border-color:#1b7fb9!important}
#board.board:not(.polygon-board) .cell.center{background:transparent!important;border:0!important;box-shadow:none!important}
#board.board:not(.polygon-board)::before{
 background:conic-gradient(from -45deg,#10ae45 0deg 90deg,#ffcb2b 90deg 180deg,#138fee 180deg 270deg,#ed2948 270deg 360deg)!important;
 box-shadow:inset 0 2px 3px #fff8,0 0 0 1px #8e7749!important;
 pointer-events:none;
}
#board.board:not(.polygon-board) .home-plate,
#board.board:not(.polygon-board) .base-box{
 border:clamp(2px,.4vw,5px) solid #e6d5bb!important;
 border-radius:16%!important;
 background:linear-gradient(135deg,#fffef9 0%,#f4efe6 55%,#e7dbcc 100%)!important;
 box-shadow:0 3px 9px #0005,inset 0 3px 4px #fff,inset 0 -3px 6px #69513c44!important;
}
#board.board:not(.polygon-board) .home-plate .base-name{
 color:#fff8e8!important;text-shadow:0 1px 3px #07172d,0 2px 5px #000a!important;
}
#board.board:not(.polygon-board) .cell.safe::after,
#board.board:not(.polygon-board) .cell.star::after{
 color:#fff!important;text-shadow:0 2px 2px #404858,0 0 1px #000!important;
 filter:drop-shadow(0 -1px 1px #fff);
 font-weight:950;
}
#board.board:not(.polygon-board) .cell.safe:not(.start-red):not(.start-green):not(.start-yellow):not(.start-blue),
#board.board:not(.polygon-board) .cell.star:not(.red):not(.green):not(.yellow):not(.blue){
 background:linear-gradient(140deg,#c1c5c9,#868a91 75%,#656b75)!important;
 border-color:#737783!important;
}
#board.board.polygon-board{
 background:radial-gradient(circle at 50% 45%,#2d527e 0%,#142c4c 72%,#081934 100%)!important;
 border-color:#dcae62!important;
}
#board.board.polygon-board .poly-cell{
 background:linear-gradient(135deg,#fffef5,#ece1d2 70%,#cfbeab)!important;
 border:1px solid #948979!important;
 border-radius:3px!important;
 box-shadow:inset 0 1px 1px #fff8,0 2px 3px #071a3155!important;
 color:#344b61!important;
}
#board.board.polygon-board .poly-cell.poly-base,
#board.board.polygon-board .poly-cell.poly-lane,
#board.board.polygon-board .poly-cell.poly-start,
#board.board.polygon-board .poly-cell.poly-goal{
 border-color:#fff9d7!important;
 box-shadow:inset 0 2px 2px #ffffff88,0 2px 4px #00162f80!important;
}
#board.board.polygon-board .poly-cell.poly-red{background:linear-gradient(135deg,#ff8e93,#e92843 80%,#8d0d28)!important}
#board.board.polygon-board .poly-cell.poly-green{background:linear-gradient(135deg,#a5f791,#0dbb48 80%,#006329)!important}
#board.board.polygon-board .poly-cell.poly-yellow{background:linear-gradient(135deg,#fff39e,#ffcb24 80%,#b5800a)!important}
#board.board.polygon-board .poly-cell.poly-blue{background:linear-gradient(135deg,#a7ebff,#0c91f0 80%,#005b9d)!important}
#board.board.polygon-board .poly-cell.poly-orange{background:linear-gradient(135deg,#ffe0a1,#f58b28 80%,#ad5000)!important}
#board.board.polygon-board .poly-cell.poly-purple{background:linear-gradient(135deg,#eac2ff,#9b5ee0 80%,#571c8d)!important}
#board.board.polygon-board .poly-cell.poly-star{
 background:linear-gradient(140deg,#ccd0d8,#7a8290)!important;color:white!important;
 text-shadow:0 1px 2px #243a50!important;
}
#board .piece,#board .piece:disabled{
 box-sizing:border-box;
 width:6.3%!important;height:8.1%!important;
 border:0!important;border-radius:0!important;padding:0!important;
 background:transparent!important;background-image:none!important;
 box-shadow:none!important;
 opacity:1!important;color:transparent!important;
 font-size:0!important;line-height:1!important;text-shadow:none!important;
 display:block!important;overflow:visible!important;
 filter:drop-shadow(0 2px 2px #0b1a3188);
 z-index:28!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
#board .piece.red,#board .piece.green,#board .piece.yellow,#board .piece.blue,
#board .piece.orange,#board .piece.purple{background:transparent!important;background-image:none!important}
#board .piece::before,#board .piece::after{content:none!important;display:none!important}
#board .piece .manch-pawn-svg{
 display:block;width:100%;height:100%;overflow:visible;
 filter:drop-shadow(0 2px 1px #0005);pointer-events:none;
}
#board .piece .manch-pawn-number{
 position:absolute;right:-8%;bottom:-3%;z-index:3;
 width:clamp(10px,1.8vw,15px);height:clamp(10px,1.8vw,15px);
 display:flex;align-items:center;justify-content:center;
 border:1px solid #ba9553;border-radius:50%;
 background:linear-gradient(145deg,#fffdf6,#e7d9c0);
 box-shadow:0 1px 2px #0008;
 color:#1c2d45!important;font:900 clamp(7px,1.2vw,10px)/1 Tahoma,Arial,sans-serif!important;
 text-shadow:none!important;pointer-events:none;
}
#board .piece.movable,#board .piece.movable:disabled{
 z-index:48!important;border:0!important;box-shadow:none!important;
 animation:manchPulsingPawn .75s ease-in-out infinite!important;
}
#board .piece.movable .manch-pawn-svg{filter:drop-shadow(0 0 6px #ffed62) drop-shadow(0 2px 2px #0006)}
@keyframes manchPulsingPawn{
 0%,100%{opacity:1;filter:drop-shadow(0 0 2px #ffe990)}
 50%{opacity:.60;filter:drop-shadow(0 0 10px #ffdd5d)}
}
#board.polygon-board .piece,#board.polygon-board .piece:disabled{
 width:4.3%!important;height:5.5%!important;
}
#board .piece:disabled{cursor:default}
#centerDice.center-dice{
 width:clamp(42px,11vw,54px)!important;height:clamp(42px,11vw,54px)!important;
 background:linear-gradient(145deg,#fffdf0,#e5dcc9)!important;
 color:#18344f!important;border:3px solid #d5a15c!important;
 border-radius:13px!important;
 box-shadow:0 3px 8px #0008,inset 0 2px 3px #fff,0 0 0 2px #fff8!important;
}
#centerDiceFace{color:#163452!important;text-shadow:none!important}
#board .piece:focus-visible{outline:2px solid #ffec81!important;outline-offset:3px!important}
@media(max-width:550px){
 #board .piece,#board .piece:disabled{width:6.5%!important;height:8.3%!important}
 #board.polygon-board .piece,#board.polygon-board .piece:disabled{width:4.4%!important;height:5.7%!important}
 #board .piece .manch-pawn-number{font-size:8px!important;width:12px;height:12px}
}
@media(prefers-reduced-motion:reduce){
 #board .piece.movable,#board .piece.movable:disabled{
  animation:none!important;filter:drop-shadow(0 0 6px #ffdb72)
 }
}
