/* Life for every game (game-life.js; owner, 29 Nov 2026: "give life to all games ... shines going over buttons"): the
   shine's band, the gentle float of pieces marked data-life="float", and room for the band on controls. The band is an
   element of its own (adios-sjaj) so no game's "span" rule ever reaches it; it has no z-index, so it never shows over a
   card laid over its piece. */
adios-sjaj {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.62) 50%, rgba(255, 255, 255, 0) 62%) 140% 0 / 260% 100% no-repeat;
    opacity: 0;
    pointer-events: none;
}

adios-sjaj.is-round {
    inset: 6%;
    border-radius: 50%;
}

/* Controls and cards hold the band (a game's own position wins: this has no weight). Tiles keep the game's own: a tile left
   static gets moves only, so a board's layers never change. */
:where([data-life="button"], [data-life="shine"]) {
    position: relative;
}

[data-life="float"] {
    animation: life-float 3.8s ease-in-out infinite;
}

[data-life="float"]:nth-child(2n) {
    animation-delay: -1.4s;
}

[data-life="float"]:nth-child(3n) {
    animation-delay: -2.6s;
}

@keyframes life-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -3px; }
}

@media (prefers-reduced-motion: reduce) {
    [data-life="float"] {
        animation: none;
    }

    adios-sjaj {
        display: none;
    }
}
