/* Die is drawn in the unused top-right yard (rows 0-5, columns 9-14). */
.ludo-board .ludo-die-face-v229{position:absolute;left:80%;top:20%;transform:translate(-50%,-50%);width:24%;aspect-ratio:1;background:linear-gradient(145deg,#fff,#e3e8ed);border:2px solid #8794a3;border-radius:15%;box-shadow:0 3px 8px #20304755;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:8%;padding:15%;box-sizing:border-box;z-index:1;pointer-events:none}
.ludo-board .ludo-die-face-v229{padding:3%}
.ludo-die-face-v229 i{width:100%;height:100%;align-self:center;justify-self:center;border-radius:50%;background:#182434;visibility:hidden}
.ludo-die-face-v229[data-face="0"]::after{content:"–";position:absolute;inset:0;display:grid;place-items:center;color:#627184;font-size:clamp(1.3rem,5vw,3rem);font-weight:700}
.ludo-die-face-v229 i.is-pip{visibility:visible}


/* Neon wireframe: neutral track cells reveal the existing game panel. */
.ludo-board{background:transparent;border:2px solid #70eaff;box-shadow:0 0 0 1px rgba(29,140,255,.65),0 0 13px rgba(29,175,255,.55),0 0 26px rgba(29,140,255,.26),0 12px 28px rgba(0,0,0,.42)}
.ludo-board .ludo-cell:where(:not(.red):not(.yellow):not(.goal)){background:transparent;border:1px solid rgba(102,222,255,.72);box-shadow:inset 0 0 4px rgba(23,165,255,.16);color:#eafaff}
.ludo-board .ludo-cell.yard.inactive{background:transparent;border:0;box-shadow:none}
.ludo-board .ludo-cells::before,.ludo-board .ludo-cells::after{content:'';position:absolute;width:40%;height:40%;box-sizing:border-box;border:1px solid rgba(102,222,255,.8);box-shadow:inset 0 0 5px rgba(23,165,255,.15);pointer-events:none}
.ludo-board .ludo-cells::before{top:0;right:0}.ludo-board .ludo-cells::after{bottom:0;left:0}
.ludo-board .ludo-cell.red:not(.yard-inner){background:#f05b63}.ludo-board .ludo-cell.yellow:not(.yard-inner){background:#f2cc39}
.ludo-board .ludo-cell.red:not(.yard),.ludo-board .ludo-cell.yellow:not(.yard){border-color:rgba(8,25,48,.5)}
.ludo-board .ludo-cell.safe:not(.red):not(.yellow){color:#f4fbff;text-shadow:0 0 5px rgba(102,222,255,.7)}
/* Visual tumble does not change the rules engine's actual roll. */
.ludo-board .ludo-die-face-v229.is-rolling-v230{animation:ludoTumbleV230 1080ms cubic-bezier(.25,.5,.35,1) both;will-change:transform;box-shadow:0 8px 20px #06132699,0 0 14px rgba(102,222,255,.28)}
@keyframes ludoTumbleV230{
  0%{transform:translate(-50%,-50%) perspective(420px) rotateZ(0) rotateX(0) rotateY(0) scale(1)}
  12%{transform:translate(-54%,-63%) perspective(420px) rotateZ(105deg) rotateX(42deg) rotateY(-35deg) scale(1.08)}
  27%{transform:translate(-45%,-47%) perspective(420px) rotateZ(215deg) rotateX(-34deg) rotateY(34deg) scale(.89)}
  42%{transform:translate(-52%,-62%) perspective(420px) rotateZ(346deg) rotateX(38deg) rotateY(-24deg) scale(1.05)}
  57%{transform:translate(-46%,-47%) perspective(420px) rotateZ(475deg) rotateX(-22deg) rotateY(25deg) scale(.94)}
  73%{transform:translate(-51%,-64%) perspective(420px) rotateZ(598deg) rotateX(21deg) rotateY(-16deg) scale(1.04)}
  86%{transform:translate(-50%,-47%) perspective(420px) rotateZ(730deg) rotateX(-8deg) rotateY(6deg) scale(.97)}
  94%{transform:translate(-50%,-54%) rotateZ(716deg) scale(1.02)}
  100%{transform:translate(-50%,-50%) rotateZ(720deg) scale(1)}
}
@media(prefers-reduced-motion:reduce){.ludo-board .ludo-die-face-v229.is-rolling-v230{animation:none}}
