/* Dominos : tapis vert, dominos ivoire à points colorés, main du joueur en dominos debout. Réglages en pastilles via chess.css. */
.wl-dm{--wl-dm-ivory:#fffbef;--wl-dm-edge:#b9a978;--wl-dm-felt:#2f6440}
.wl-dm-game{margin-top:1.6rem}
.wl-dm-main{max-width:96rem;margin-inline:auto}
.wl-dm-seats{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;margin-bottom:1rem}
.wl-dm-seat{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;padding:.6rem 1.2rem;border:2px solid transparent;border-radius:var(--wl-radius-sm);background:var(--wl-soft);font-size:1.5rem;transition:border-color .2s,background .2s}
.wl-dm-seat.is-turn{border-color:var(--wl-pop);background:var(--wl-pop-soft)}
.wl-dm-seat.is-winner{border-color:var(--wl-accent);background:var(--wl-tag-bg)}
.wl-dm-seat-name{font-weight:700}
.wl-dm-seat-score{color:var(--wl-muted);font-variant-numeric:tabular-nums}
.wl-dm-seat-score b{color:var(--wl-ink);font-family:var(--wl-font-head);font-size:1.7rem}
.wl-dm-seat-hand{display:flex;gap:.2rem;flex-basis:100%}
.wl-dm-passed{font-style:normal;font-weight:600;font-size:1.25rem;padding:.1rem .6rem;border-radius:999px;background:var(--wl-panel);color:var(--wl-muted)}
.wl-dm-mini{width:1.3rem;height:2.6rem}
.wl-dm-back{fill:#1f4d33;stroke:#0f2a1b;stroke-width:2}.wl-dm-back-dot{fill:#7fa66a}

.wl-dm-wrap{position:relative}
.wl-dm-table{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:24rem;padding:1.6rem .8rem 3.4rem;border-radius:var(--wl-radius);background:radial-gradient(ellipse at 50% 35%,#4f8a5c,var(--wl-dm-felt) 75%);box-shadow:inset 0 0 0 3px #26553a}
.wl-dm-wrap:has(> [data-dm-over]:not([hidden])) .wl-dm-table{min-height:56rem}
.wl-dm-board{display:block;width:100%;height:auto;overflow:visible}
.wl-dm-t-body{fill:var(--wl-dm-ivory);stroke:var(--wl-dm-edge);stroke-width:1.5;filter:drop-shadow(1.5px 2.5px 0 rgba(0,0,0,.28))}
.wl-dm-t-line{stroke:#c9b98c;stroke-width:1.6;stroke-linecap:round}
.wl-dm-t.is-last .wl-dm-t-body{fill:#fff1c2;stroke:#ff8a3d;stroke-width:2.5}
.wl-dm-board .wl-dm-t.is-last{animation:wl-dm-in .35s ease-out}
.wl-dm-ghost{cursor:pointer}
.wl-dm-ghost rect{fill:rgba(255,255,255,.18);stroke:#ffd77a;stroke-width:3;stroke-dasharray:7 5;animation:wl-dm-pulse 1.2s ease-in-out infinite}
.wl-dm-ghost text{fill:#fff;font:700 20px var(--wl-font-head,system-ui);pointer-events:none}
.wl-dm-ghost:hover rect{fill:rgba(255,215,122,.35)}
@keyframes wl-dm-pulse{50%{stroke-opacity:.45}}
@keyframes wl-dm-in{from{opacity:0}}
.wl-dm-stock{position:absolute;left:0;right:0;bottom:.6rem;margin:0;text-align:center;color:#e9f4e3;font-size:1.35rem;font-weight:600}

.wl-dm-status{min-height:2.6rem;margin:1.2rem 0 0;text-align:center;font-weight:600}
.wl-dm.is-thinking .wl-dm-status::after{content:"";display:inline-block;width:1.2rem;height:1.2rem;margin-left:.6rem;vertical-align:-.1rem;border:2px solid var(--wl-link);border-right-color:transparent;border-radius:50%;animation:wl-chess-spin .8s linear infinite}
.wl-dm-ends{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;margin-top:1rem}
.wl-dm-hand-box{margin-top:1.2rem;padding:1rem 1.2rem 1.4rem;border-radius:var(--wl-radius);background:var(--wl-soft)}
.wl-dm-hand-h{margin:0 0 .8rem;font-size:1.6rem;text-align:center}
.wl-dm-hand-h span{color:var(--wl-muted);font-weight:500;font-size:1.4rem}
.wl-dm-hand{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;min-height:9rem}
.wl-dm-tile{width:4.8rem;height:9.2rem;padding:0;border:0;border-radius:.8rem;background:none;cursor:pointer;transition:transform .15s,opacity .15s,filter .15s;-webkit-tap-highlight-color:transparent}
.wl-dm-svg{display:block;width:100%;height:100%}
.wl-dm-tile.is-playable{transform:translateY(-.6rem)}
.wl-dm-tile.is-playable .wl-dm-t-body{stroke:#2f9e5b;stroke-width:3}
.wl-dm-tile.is-dim{opacity:.55;filter:saturate(.6)}
.wl-dm-tile.is-selected{transform:translateY(-1.2rem)}
.wl-dm-tile.is-selected .wl-dm-t-body{fill:#fff1c2;stroke:#ff8a3d;stroke-width:4}
.wl-dm-tile.is-hint .wl-dm-t-body{stroke:#4fb3ff;stroke-width:4}
.wl-dm-tile.is-hint{animation:wl-dm-hop 1s ease-in-out 3}
.wl-dm-tile.is-new .wl-dm-t-body{fill:#eef8ff}
.wl-dm-tile:hover:not(.is-dim){filter:brightness(1.03)}
.wl-dm-tile:focus-visible{outline:3px solid var(--wl-link);outline-offset:3px}
@keyframes wl-dm-hop{50%{transform:translateY(-1.4rem)}}
.wl-dm-tools .wl-btn:disabled{opacity:.45;cursor:not-allowed}
.wl-dm-toggle{justify-content:center;margin-top:1rem}
.wl-dm-wins{white-space:nowrap}
.wl-dm-wins b{color:var(--wl-ink)}
.wl-dm-over-hands{color:var(--wl-muted);font-size:1.4rem}
@media (prefers-reduced-motion:reduce){.wl-dm-ghost rect,.wl-dm-tile.is-hint,.wl-dm-board .wl-dm-t.is-last{animation:none}.wl-dm-tile{transition:none}}
@media (max-width:600px){
    .wl-dm-table{padding:1rem .3rem 3rem;min-height:18rem;border-radius:var(--wl-radius-sm)}
    .wl-dm-tile{width:3.9rem;height:7.6rem}
    .wl-dm-hand{gap:.5rem}
    .wl-dm-seat{font-size:1.35rem;padding:.5rem .8rem}
    .wl-dm-mini{width:1.1rem;height:2.2rem}
}
