.board.ludo.ludo-premium{position:relative;isolation:isolate;background:linear-gradient(135deg,#fffaed,#ecebdc)!important;border-radius:1.4%;overflow:visible}
.board.ludo.ludo-premium::before,.board.ludo.ludo-premium::after{display:none!important}
/* Theme material stays below the rule markings and the stable camp colours. */
.native-art .board.ludo.ludo-premium{background:var(--table-surface)!important}
.native-art .board.ludo.ludo-premium::before{content:'';display:block!important;position:absolute;inset:0;z-index:-1;background:var(--theme-motif) center/cover;filter:none;mix-blend-mode:normal;opacity:.65;pointer-events:none;border-radius:inherit}
.native-art .board.ludo.ludo-premium .square:not(.ludo-camp-cell):not(.ludo-yard-cell){background:color-mix(in srgb,#fff9e9 82%,transparent)!important}
.ludo-table-art{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;border-radius:inherit}
.board.ludo.ludo-premium .square{z-index:1;background:#fffbec!important;border:1px solid #6c807766!important;border-radius:8%;box-shadow:inset 0 1px 2px #ffffffad}
.board.ludo.ludo-premium .cell-theme-art{display:none!important}
.board.ludo.ludo-premium .square.ludo-camp-cell{background:color-mix(in srgb,var(--ludo-cell-camp) 30%,#fffbe9)!important;border-color:var(--ludo-cell-camp)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ludo-cell-camp) 40%,transparent)}
.board.ludo.ludo-premium .square.ludo-entry{background:var(--ludo-cell-camp)!important}
.ludo-entry-arrow{position:absolute;inset:0;display:grid;place-items:center;font:bold clamp(12px,2.1vw,28px)/1 sans-serif;color:#fff;pointer-events:none;text-shadow:0 1px 2px #102323}
.board.ludo.ludo-premium .square.ludo-yard-cell{background:transparent!important;border:0!important;box-shadow:none}
.board.ludo.ludo-premium .square.selected{outline:3px solid #0d2739;outline-offset:-3px;filter:brightness(1.08)}
.board.ludo.ludo-premium .square.destination::after{z-index:4;border:2px solid #123534;background:#fff5;width:42%;height:42%}
.board.ludo.ludo-premium .square:focus-visible{outline:3px solid #081d29;outline-offset:-3px}
.board.ludo.ludo-premium .ludo-playing-pawn{display:flex;place-items:center;position:relative;width:92%;height:110%;overflow:visible;background:none!important;border:0!important;box-shadow:none!important;filter:drop-shadow(0 2px 2px #001c2555)}
.ludo-pawn-art{width:100%;height:100%;overflow:visible;display:block}
.ludo-stack-count{position:absolute;right:-12%;bottom:-5%;padding:1px 3px;min-width:1.3em;border:1px solid #fff8df;border-radius:50%;background:#132f39;color:#fff;font:bold clamp(9px,1.1vw,13px)/1.2 sans-serif;box-shadow:0 1px 4px #0008}
.board.ludo.ludo-premium .ludo-home{left:3.5%;top:3.5%;width:33%;height:33%;box-sizing:border-box;border:0;background:#fff9e900;color:#14323a;border-radius:10%;padding:0;gap:2px}
.board.ludo.ludo-premium .ludo-home-far{left:63.5%;top:63.5%}
.board.ludo.ludo-premium .ludo-home-title{color:#173a43;font:700 clamp(9px,1vw,13px)/1.2 sans-serif}
.board.ludo.ludo-premium .ludo-home-pieces{width:100%;gap:2px}
.board.ludo.ludo-premium .ludo-home-pawn{border:1px solid #344a4340;background:#fffdf45c;border-radius:22%;box-shadow:inset 0 1px 2px #fff}
.board.ludo.ludo-premium .ludo-home-pawn:not(:disabled){outline:3px solid #143340;outline-offset:-2px;background:#ffffffdd;cursor:pointer}
.board.ludo.ludo-premium .ludo-home-pawn:focus-visible{outline:3px solid #143340;outline-offset:2px}
.board.ludo.ludo-premium .ludo-home-count{color:#173a43;font-weight:600}
.board.ludo.ludo-premium .ludo-home .reserve-art{height:94%;width:90%}
/* The die belongs to the central play area, with room left for the board. */
body.match-fullscreen #game-app.play-experience[data-game=ludo] .board-area{--ludo-dock:138px;flex-direction:column;padding:12px 12px calc(var(--ludo-dock) + var(--ludo-roster,0px) + 56px);gap:0}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .board-frame:not(.salons3d-visible){margin:auto}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .board-frame:not(.salons3d-visible) .board{width:min(calc(var(--match-stage-width,100dvw) - var(--frame-size)*2 - 28px),calc(100dvh - var(--ludo-dock) - var(--ludo-roster,0px) - var(--frame-size)*2 - 84px))!important}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .dice-station{position:absolute;z-index:23;bottom:48px;left:50%;transform:translateX(-50%);box-sizing:border-box;width:min(410px,calc(100% - 24px));height:var(--ludo-dock);margin:0;padding:8px 12px;grid-template-columns:118px minmax(0,1fr);gap:9px;background:color-mix(in srgb,var(--theme-control-panel,#0a2426) 94%,#000);color:#fff9e9;border-color:var(--theme-control-accent,#d7b969);box-shadow:0 8px 26px #0007}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .dice-stage{height:72px}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .dice-result{font:700 15px/1.2 sans-serif;color:#fff9e9}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .dice-help{font-size:11px;line-height:1.35;color:#f4e9cf}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .dice-controls{gap:6px}
body.match-fullscreen #game-app.play-experience[data-game=ludo][data-editorial-view] .dice-controls .button{color:#fff9e9!important;min-height:44px;text-shadow:0 1px 2px #000;border:0!important;border-image-source:var(--match-button-art)!important;border-image-slice:0 20% 0 20% fill!important;border-image-width:0 27px!important;background:none!important;border-radius:0}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .board-frame.salons3d-visible{bottom:calc(var(--ludo-dock) + var(--ludo-roster,0px) + 42px);height:calc(100% - var(--ludo-dock) - var(--ludo-roster,0px) - 42px)}
body.match-fullscreen #game-app.play-experience[data-game=ludo] #salons3d-host{height:100%!important}
body.match-fullscreen #game-app.play-experience[data-game=ludo] #hand:not(:empty){left:auto;right:calc(var(--match-right-width,0px) + 8px);bottom:calc(var(--ludo-dock) + 52px);max-width:calc(var(--match-stage-width,100dvw) - 16px)}
body.match-fullscreen #game-app.play-experience .match-camera-controls>div{grid-template-columns:1fr 1fr}
body.match-fullscreen #game-app.play-experience .match-camera-controls [data-match-camera=top]{grid-column:1/-1}
@media(max-width:819px){body.match-fullscreen #game-app.play-experience[data-game=ludo] .board-area{padding-top:64px;--ludo-dock:128px}body.match-fullscreen #game-app.play-experience[data-game=ludo] .board-frame:not(.salons3d-visible) .board{width:min(calc(100dvw - var(--frame-size)*2 - 24px),calc(100dvh - var(--ludo-dock) - var(--ludo-roster,0px) - var(--frame-size)*2 - 140px))!important}body.match-fullscreen #game-app.play-experience[data-game=ludo] .dice-station{grid-template-columns:100px minmax(0,1fr);bottom:72px}body.match-fullscreen #game-app.play-experience[data-game=ludo] .board-frame.salons3d-visible{height:calc(100% - var(--ludo-dock) - var(--ludo-roster,0px) - 66px);bottom:calc(var(--ludo-dock) + var(--ludo-roster,0px) + 66px)}.board.ludo.ludo-premium .ludo-home-title{font-size:9px}.board.ludo.ludo-premium .ludo-home-count{font-size:8px}}

/* Family scores have their own space between the board and the dice. */
body.match-fullscreen #game-app.play-experience[data-game=ludo]:has(.group-roster){--ludo-roster:68px}
body.match-fullscreen #game-app.play-experience[data-game=ludo] #hand:has(.group-roster){width:min(530px,calc(var(--match-stage-width,100dvw) - 24px));height:64px;max-height:none;overflow:hidden;bottom:calc(var(--ludo-dock) + 56px);padding:6px;right:calc(var(--match-right-width,0px) + (var(--match-stage-width,100dvw) - min(530px,var(--match-stage-width,100dvw) - 24px))/2);max-width:none}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .group-roster{display:grid;grid-template-columns:1fr 1fr;gap:4px;height:100%}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .group-player{display:flex;align-items:center;padding:3px 5px;border-width:1px;font:600 11px/1.25 sans-serif;border-color:var(--camp);background:#fff9e9;color:#17313c;white-space:nowrap}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .group-player[data-camp="1"]{--camp:#e64e45}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .group-player[data-camp="2"]{--camp:#3386d3}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .group-player[data-camp="3"]{--camp:#299b63}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .group-player[data-camp="4"]{--camp:#edb836}
body.match-fullscreen #game-app.play-experience[data-game=ludo] .group-player.is-turn{outline-color:var(--camp);outline-offset:0;background:color-mix(in srgb,var(--camp) 20%,#fff9e9)}
@media(max-width:819px){body.match-fullscreen #game-app.play-experience[data-game=ludo] #hand:has(.group-roster){bottom:calc(var(--ludo-dock) + 80px)}body.match-fullscreen #game-app.play-experience[data-game=ludo] .group-player{font-size:9px;padding:2px}}

body.match-fullscreen #game-app.play-experience[data-game=ludo] .dice-station[data-values]:not([data-values=""]) .dice-roll:disabled{display:none}
@media(max-width:819px){
 body.match-fullscreen #game-app.play-experience[data-game=ludo] .group-player{white-space:normal;line-height:1.15}
 .board.ludo.ludo-premium .square.ludo-yard-cell:has(.piece)::before{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%);background:transparent;pointer-events:auto}
}
