.game.ludo { scroll-margin-top: 90px; }
.game-grid .game.ludo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.ludo-board { display: block; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 1; border-radius: 22px; background: #efecff; box-shadow: var(--shadow); scroll-margin-top: 90px; touch-action: manipulation; }
.lb-bg { fill: #efecff; } .lb-tile { stroke: rgba(40, 30, 90, .16); stroke-width: .05; }
.lb-star, .lb-mark { text-anchor: middle; dominant-baseline: central; user-select: none; pointer-events: none; font-family: "Segoe UI Symbol", "Noto Sans Symbols2", system-ui, sans-serif; }
.lb-star { font-size: .7px; fill: #8c85b8; } .lb-star.on { fill: #fff; }
.lb-token { transition: transform .14s ease-out; outline: none; } .lb-hit { fill: transparent; }
.lb-disc { stroke: #fff; stroke-width: .1; filter: drop-shadow(0 .06px .08px rgba(20, 10, 60, .5)); }
.lb-mark { font-size: .42px; fill: #fff; }
.lb-token.can { cursor: pointer; } .lb-token.can .lb-hit { fill: rgba(20, 20, 40, .2); stroke: #14141c; stroke-width: .09; stroke-dasharray: .28 .16; animation: ludo-glow 1s ease-in-out infinite alternate; }
.lb-token:focus-visible .lb-hit { stroke: #14141c; stroke-width: .16; stroke-dasharray: none; }
@keyframes ludo-glow { from { opacity: .45; } to { opacity: 1; } }
.ludo-side h2 { margin: 0 0 .3rem; } .ludo-side .game-status { min-height: 3.2em; }
.ludo-setup[hidden], .ludo-play[hidden], .ludo-setup [hidden] { display: none; }
.ludo-setup { display: grid; gap: .8rem; } .ludo-setup label { display: grid; gap: .3rem; font-weight: 700; font-size: .92rem; }
.ludo-setup select { width: 100%; min-height: 46px; padding: 0 .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.ludo-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.ludo-roll { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ludo-die { --seat: #6d5dfc; width: 84px; height: 84px; flex: none; padding: 13px; border: 4px solid var(--seat); border-radius: 22px; background: #fff; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; cursor: pointer; }
.ludo-die i { border-radius: 50%; } .ludo-die i.on { background: #17162b; }
.ludo-die:disabled { opacity: .9; cursor: default; } .ludo-die:not(:disabled) { box-shadow: 0 0 0 5px color-mix(in srgb, var(--seat) 30%, transparent); }
.ludo-die:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; } .ludo-die.spin { animation: ludo-spin .4s linear infinite; opacity: 1; }
@keyframes ludo-spin { 50% { transform: rotate(14deg) scale(1.06); } }
.ludo-players { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.ludo-players li { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 14px; } .ludo-players li span:last-child { margin-left: auto; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.ludo-players li.now { border-color: var(--ink); } .ludo-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: .7rem; line-height: 1; }
.ludo-rules { margin-top: 1rem; } .ludo-rules summary { cursor: pointer; font-weight: 700; } .ludo-rules ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
@media (max-width: 800px) { .game-grid .game.ludo { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: .8rem; } .ludo-die { width: 72px; height: 72px; padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .lb-token { transition: none; } .lb-token.can .lb-hit, .ludo-die.spin { animation: none; } }
