/* Chess Puzzles (/chess-puzzles): only what is its own. The stage and the canvas are the Chess landing's
   (chess-landing-* in landing/apps.css); the puzzle's figures are the app kit's floating stats panel
   (section.ak-stats.ak-stats--float, css/app-kit/components.css). */

/* The side to play, with a disc in its colour. */
.ak-app .cp-stats .cp-stats-side::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-inline-end: 0.4em;
    border: 1px solid rgba(127, 127, 127, 0.8);
    border-radius: 50%;
    background: #fff;
    vertical-align: -0.05em;
}

.ak-app .cp-stats .cp-stats-side[data-side="b"]::before {
    background: #111;
}

.ak-app .cp-stats .cp-stats-side[data-side=""]::before {
    display: none;
}

/* The status line a little smaller (its tone is the kit's, components.css). The sizes outweigh the games' tile sizes
   (app-kit/games.css). */
.ak-app .cp-stats.ak-stats--float .ak-stat .cp-stats-status {
    font-size: 0.88rem;
}

.ak-app .cp-stats.ak-stats--float .ak-stat .cp-stats-moves {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* The puzzle on lichess.org, on its own line under the goal. */
.ak-app .cp-stats .cp-stats-source {
    display: block;
    margin: 0.1rem 0 0;
    color: inherit;
    opacity: 0.75;
}

.ak-app .cp-stats .cp-stats-source:hover,
.ak-app .cp-stats .cp-stats-source:focus-visible {
    opacity: 1;
}
