/* THE GAME'S EVENTS ON A BOARD (BoardFx.js, 2026-12-01): the rules of the marks BoardFx lays over a
   board, shared by the musicals' films (song-video.css loads after it: the film's own rules — the
   red edge of a "?", the tint of a variation, the names' rows, the marks off while the board turns —
   are there) and the game stories' page (radio-story.css adds its own the same way). Moved here
   from song-video.css unchanged: a changed rule is a changed film — bump MusicalAssembler.Version. */

/* ON THE BOARD (2026-11-19, MusicalFrame.BoardWatch). The annotator's symbol on the square its move
   lands on, until the next move, in the strip's colours: gold for ! and !!, red for ?, ?? and ?!,
   plain for !?. */
.m-badge {
    position: absolute; z-index: 4; display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font-family: var(--ui, "Montserrat", "Segoe UI", sans-serif); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: #14161c; background: var(--gold, #f3d29b);
    box-shadow: 0 2px 6px rgba(0,0,0,.55), 0 0 0 1.5px rgba(20,22,28,.85);
    opacity: 0; transform: scale(.4); transition: opacity .12s ease, transform .16s cubic-bezier(.3,1.5,.6,1); pointer-events: none;
}
.m-badge.is-in { opacity: 1; transform: scale(1); }
.m-badge.is-bad { background: #e25a72; color: #fff; }
.m-badge.is-odd { background: #e9edf5; }
/* THE GAME'S EVENTS ON THE BOARD (2026-11-23, MusicalFrame.BoardWatch — DOM over the stage cell,
   each laid on its square by the watch; all off while the board turns, .fx-off). */
.m-fx { position: absolute; z-index: 1; pointer-events: none; opacity: 0; }
/* Check: the king's square glows red while it stands; mate holds it harder; stalemate is grey. */
.m-check {
    background: radial-gradient(circle, rgba(255, 30, 30, .95) 0%, rgba(255, 30, 30, .7) 38%, rgba(255, 30, 30, 0) 74%);
    mix-blend-mode: multiply; transition: opacity .18s ease;
}
.m-check.is-in { opacity: 1; animation: m-check-in .5s ease-out; }
.m-check.is-mate { background: rgba(240, 30, 40, .82); box-shadow: 0 0 0 2px rgba(255, 70, 70, .95) inset; }
.m-check.is-stale { background: rgba(120, 126, 140, .8); }
/* … as a rim around the king's own outline where the watch could draw one (#halo): no square. */
.m-check.is-halo { background: none; box-shadow: none; mix-blend-mode: normal; transition: opacity .45s ease; }
.m-check.is-halo.is-in { animation: m-halo-in .3s ease-out; }
@keyframes m-halo-in { 0% { opacity: 0; } 100% { opacity: 1; } }
.m-halo { display: none; position: absolute; left: -15%; top: -15%; width: 130%; height: 130%; }
.m-check.is-halo .m-halo { display: block; }
@keyframes m-check-in { 0% { transform: scale(1.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* … and a line from each checking piece to the king, for a second. */
.m-lines { inset: 0; width: 100%; height: 100%; z-index: 3; opacity: 1; overflow: visible; }
.m-lines line { stroke: #ff3b3b; stroke-linecap: round; opacity: 0; animation: m-line 1.1s ease-out forwards; }
@keyframes m-line { 0% { opacity: 0; } 12% { opacity: .9; } 70% { opacity: .9; } 100% { opacity: 0; } }
/* Mate: the squares beside the king, ticked off — ✕ covered, • his own man. */
.m-flight {
    z-index: 4; display: flex; align-items: center; justify-content: center; font-family: var(--ui, "Montserrat", "Segoe UI", sans-serif); font-weight: 900; line-height: 1;
    color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); transform: scale(.3); transition: opacity .14s ease, transform .2s cubic-bezier(.3,1.5,.6,1);
}
.m-flight.is-covered { background: rgba(200, 84, 96, .42); }
.m-flight.is-own { background: rgba(20, 22, 28, .38); }
.m-flight.is-stale { background: rgba(120, 126, 140, .45); }
.m-flight.is-in { opacity: 1; transform: scale(1); }
.m-end-chip {
    z-index: 5; left: 50%; bottom: -3px; transform: translate(-50%, 8px); padding: 7px 14px; border-radius: 999px; white-space: nowrap;
    font: 900 13px/1 var(--ui, "Montserrat", "Segoe UI", sans-serif); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #d8253c;
    box-shadow: 0 3px 12px rgba(0,0,0,.6); transition: opacity .25s ease, transform .25s ease;
}
.m-end-chip.is-stale { background: #5d6472; }
.m-end-chip.is-in { opacity: 1; transform: translate(-50%, 0); }
/* Back at an earlier move of the game (a chorus sung from there again): "↺ 12.Nxe5", top right —
   the variation's chip is top left — in the notation's gold, for a moment. */
.m-back-chip {
    z-index: 5; right: 8px; top: 8px; transform: translateX(10px); padding: 6px 11px; border-radius: 999px; white-space: nowrap;
    font: 800 13px/1 var(--ui, "Montserrat", "Segoe UI", sans-serif); letter-spacing: .02em; color: #1a1408; background: #f0c24a;
    box-shadow: 0 3px 10px rgba(0,0,0,.55); transition: opacity .2s ease, transform .2s ease;
}
.m-back-chip.is-in { opacity: 1; transform: translateX(0); }
/* A capture: the taken piece alone (no square under it), knocked aside by the capturer — the
   motion is a Web animation of the watch's (#knock). */
.m-capture { z-index: 2; opacity: 1; }
/* A promotion: a gold ring bursts on the square. */
.m-promo { z-index: 4; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold, #f3d29b), 0 0 18px 4px rgba(244, 196, 88, .8); }
.m-promo.is-in { animation: m-promo .85s ease-out forwards; }
@keyframes m-promo { 0% { opacity: 1; transform: scale(.5); } 70% { opacity: .9; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1.9); } }
/* What the words say about the board (BoardFx.decor, a game story's, 2026-12-01): an attack's arrow
   in red; squares lit over the board where the board cannot light them under its pieces. */
.m-decor { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.m-decor-arrow { fill: rgba(232, 72, 60, .78); stroke: rgba(120, 20, 14, .55); stroke-width: 1; animation: m-decor-in .25s ease-out; }
.m-decor-sq { animation: m-decor-in .25s ease-out; }
.m-decor-sq.is-said { fill: rgba(255, 226, 60, .45); }
.m-decor-sq.is-hit { fill: rgba(240, 105, 85, .38); }
@keyframes m-decor-in { 0% { opacity: 0; } 100% { opacity: 1; } }
/* Material: the pieces a player has more of than the other, at the right end of the name's row,
   on a pill of the board's DARK wood (black pieces vanish on the film's dark ground, white ones on light wood). */
.m-player-mat {
    flex: none; margin-left: auto; display: flex; align-items: center; height: 17px; padding: 0 4px; border-radius: 9px;
    background: #cf8e5c; box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.m-player-mat:empty { display: none; }
.m-mat-piece { display: block; width: 15px; height: 15px; }
.m-mat-piece.is-new { animation: m-mat-in .25s ease-out; }
.m-mat-piece.is-p + .m-mat-piece.is-p { margin-left: -6px; }
@keyframes m-mat-in { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }
