/* UEB 0.6.6 — Mat en deux. Les autres parties ne sont pas modifiées. */
.ueb-mate-card{max-width:1060px;border:1px solid #d5dce3;border-radius:12px;background:#fff;padding:18px;margin:14px 0 22px;scroll-margin-top:85px}
.ueb-mate-card>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.ueb-mate-card>header h4{margin:0;font-size:1.13rem}.ueb-mate-card>header span{font-size:.9rem;color:#586674}
.ueb-mate-instruction{margin:5px 0 16px;color:#3f4c58}
.ueb-mate-layout{display:grid;grid-template-columns:minmax(290px,440px) minmax(260px,1fr);gap:20px;align-items:start}
.ueb-mate-board-wrap{width:100%;max-width:440px}
.ueb-mate-board{width:100%;aspect-ratio:1;box-sizing:border-box}
.ueb-mate-cg-holder{width:100%;aspect-ratio:1;position:relative;border:2px solid #788390;box-sizing:border-box;touch-action:none}
.ueb-mate-cg-mount{width:100%;height:100%;position:relative;touch-action:none}
.ueb-mate-cg-mount cg-container,.ueb-mate-cg-mount cg-board{position:absolute;inset:0;width:100%;height:100%;display:block}
.ueb-mate-cg-mount cg-board{background:url('board.svg') center/cover}
.ueb-mate-cg-mount piece{position:absolute;left:0;top:0;display:block;width:12.5%;height:12.5%;background-position:center;background-size:contain;background-repeat:no-repeat;z-index:2;pointer-events:none}
.ueb-mate-cg-mount square{position:absolute;left:0;top:0;width:12.5%;height:12.5%;pointer-events:none}
.ueb-mate-cg-mount square.move-dest{background:radial-gradient(rgba(186,34,52,.45) 19%,transparent 22%)}
.ueb-mate-cg-mount square.selected{background:rgba(192,36,54,.46)}
.ueb-mate-cg-mount coords{position:absolute;display:flex;pointer-events:none;font-size:10px;line-height:1;opacity:.75}
.ueb-mate-cg-mount coords.ranks{height:100%;width:12px;left:2px;top:0;flex-flow:column-reverse}
.ueb-mate-cg-mount coords.files{height:14px;width:100%;bottom:0;left:0;flex-flow:row;text-transform:uppercase}
.ueb-mate-cg-mount coords coord{flex:1 1 auto}
.ueb-mate-cg-mount cg-auto-pieces,.ueb-mate-cg-mount .cg-shapes{position:absolute;inset:0;pointer-events:none}
.ueb-mate-board .ueb-piece{display:block;width:86%;height:86%;background-size:contain;background-position:center;background-repeat:no-repeat;color:transparent!important;font-size:0!important;text-shadow:none!important;-webkit-text-stroke:0!important}
.ueb-mate-panel{border:1px solid #e2e7ec;border-radius:9px;padding:16px;min-width:0}
.ueb-mate-progress{font-weight:650;color:#293945;margin:0 0 10px}
.ueb-mate-status{min-height:2.7rem;margin:0 0 14px;color:#4a5969;line-height:1.5}
.ueb-mate-status.is-success{color:#126b36;font-weight:650}.ueb-mate-status.is-error{color:#a11e26;font-weight:650}
.ueb-mate-ready,.ueb-mate-retry,.ueb-mate-restart{background:#982d43!important;color:#fff!important;border:0!important;border-radius:7px!important;padding:10px 14px!important;font-size:.93rem!important;cursor:pointer}
.ueb-mate-ready{width:100%}.ueb-mate-ready:disabled{opacity:.6;cursor:wait}
.ueb-mate-actions{display:flex;flex-wrap:wrap;align-items:center;gap:13px;margin:15px 0}
.ueb-mate-actions a{font-weight:600}
.ueb-mate-result{border-radius:7px;padding:13px 15px;font-weight:700;margin:12px 0}
.ueb-mate-result.is-correct{background:#dcf5e5;border:1px solid #7cca99;color:#126b36}
.ueb-mate-result.is-wrong{background:#ffebe9;border:1px solid #e7a5a3;color:#aa2530}
.ueb-mate-hint{font-size:.84rem;color:#65717f;line-height:1.5;margin:15px 0 0}
.ueb-mate-solutions{margin:18px 0 0;border-top:1px solid #d4dce3;padding-top:14px}
.ueb-mate-solutions h5{font-size:1rem;margin:0 0 7px}.ueb-mate-solutions-source{font-size:.91rem;color:#35424b}
.ueb-mate-variations{max-height:260px;overflow:auto;border:1px solid #e1e5e9;border-radius:7px}
.ueb-mate-variation{display:flex;align-items:center;justify-content:space-between;gap:9px;border-bottom:1px solid #ebeff2;padding:8px 10px;font-size:.89rem}
.ueb-mate-variation:last-child{border-bottom:0}
.ueb-mate-variation button{padding:4px 8px!important;border:1px solid #cbd3db!important;background:#fafbfc!important;border-radius:5px!important;color:#253746!important;cursor:pointer}
.ueb-mate-restart{margin:12px 0 0;background:#4a5968!important}
.ueb-mate-board[hidden],.ueb-mate-cg-holder[hidden],.ueb-mate-actions[hidden],.ueb-mate-result[hidden],.ueb-mate-solutions[hidden],.ueb-mate-ready[hidden],.ueb-mate-retry[hidden]{display:none!important}
@media(max-width:730px){.ueb-mate-layout{grid-template-columns:1fr;gap:14px}.ueb-mate-board-wrap{margin:0 auto}.ueb-mate-card{padding:12px}.ueb-mate-panel{padding:12px}}

.ueb-mate-board .ueb-piece[data-piece="P"]{background-image:url('pieces/white-pawn.png')}.ueb-mate-board .ueb-piece[data-piece="N"]{background-image:url('pieces/white-knight.png')}.ueb-mate-board .ueb-piece[data-piece="B"]{background-image:url('pieces/white-bishop.png')}
.ueb-mate-board .ueb-piece[data-piece="R"]{background-image:url('pieces/white-rook.png')}.ueb-mate-board .ueb-piece[data-piece="Q"]{background-image:url('pieces/white-queen.png')}.ueb-mate-board .ueb-piece[data-piece="K"]{background-image:url('pieces/white-king.png')}
.ueb-mate-board .ueb-piece[data-piece="p"]{background-image:url('pieces/black-pawn.png')}.ueb-mate-board .ueb-piece[data-piece="n"]{background-image:url('pieces/black-knight.png')}.ueb-mate-board .ueb-piece[data-piece="b"]{background-image:url('pieces/black-bishop.png')}
.ueb-mate-board .ueb-piece[data-piece="r"]{background-image:url('pieces/black-rook.png')}.ueb-mate-board .ueb-piece[data-piece="q"]{background-image:url('pieces/black-queen.png')}.ueb-mate-board .ueb-piece[data-piece="k"]{background-image:url('pieces/black-king.png')}
/* Même jeu de pièces pour le lecteur Chessground */
.ueb-mate-cg-mount piece.white.pawn{background-image:url('pieces/white-pawn.png')}.ueb-mate-cg-mount piece.white.knight{background-image:url('pieces/white-knight.png')}.ueb-mate-cg-mount piece.white.bishop{background-image:url('pieces/white-bishop.png')}
.ueb-mate-cg-mount piece.white.rook{background-image:url('pieces/white-rook.png')}.ueb-mate-cg-mount piece.white.queen{background-image:url('pieces/white-queen.png')}.ueb-mate-cg-mount piece.white.king{background-image:url('pieces/white-king.png')}
.ueb-mate-cg-mount piece.black.pawn{background-image:url('pieces/black-pawn.png')}.ueb-mate-cg-mount piece.black.knight{background-image:url('pieces/black-knight.png')}.ueb-mate-cg-mount piece.black.bishop{background-image:url('pieces/black-bishop.png')}
.ueb-mate-cg-mount piece.black.rook{background-image:url('pieces/black-rook.png')}.ueb-mate-cg-mount piece.black.queen{background-image:url('pieces/black-queen.png')}.ueb-mate-cg-mount piece.black.king{background-image:url('pieces/black-king.png')}
@media(max-width:760px){.ueb-tactics-layout{grid-template-columns:1fr}.ueb-mate-board-wrap{width:100%}}

/* 0.6.6.2 : relecture de variantes au rythme de l'apprenant. */
.ueb-mate-replay{margin:10px 0 0;padding:10px 12px;border:1px solid #d6dfe6;border-radius:8px;background:#f7f9fa;scroll-margin-top:80px}
.ueb-mate-replay-label{font-size:.91rem;font-weight:650;color:#293945;margin:0 0 8px}
.ueb-mate-replay-actions{display:flex;gap:6px;flex-wrap:wrap}
.ueb-mate-replay-actions button,.ueb-mate-replay-primary{border:1px solid #c3cbd4!important;border-radius:6px!important;background:#fff!important;color:#293945!important;padding:6px 10px!important;font-size:.88rem!important;cursor:pointer}
.ueb-mate-replay-actions button:disabled{opacity:.4;cursor:default}
.ueb-mate-replay-primary{margin:0 0 12px}
.ueb-mate-replay[hidden],.ueb-mate-replay-primary[hidden]{display:none!important}
@media(max-width:730px){.ueb-mate-replay-actions{justify-content:space-between}.ueb-mate-replay-actions button{flex:1 1 auto;padding:8px 5px!important}}

.ueb-mate-result.is-wrong{background:#f2e6f3!important;border-color:#b998bc!important;color:#682570!important}
