/* Alpha masks exported from the approved 3D models; CSS supplies the theme color. */
.landing-chess {
    position: absolute;
    inset: 72px 0 auto;
    height: 1100px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    color: #5472ab;
    opacity: .5;
    z-index: 0;
}
.landing-chess__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    width: max(110px, calc((100vw - 1240px) / 2));
}
.landing-chess__rail--left { left: 0; }
.landing-chess__rail--right { right: 0; }
.landing-chess__piece {
    position: absolute;
    top: var(--top);
    left: 50%;
    width: var(--size);
    height: var(--size);
    background-color: currentColor;
    -webkit-mask: var(--piece) center / contain no-repeat;
    mask: var(--piece) center / contain no-repeat;
    transform: translate(-50%, 0) rotate(var(--angle));
}
body > main, body > .site-footer { position: relative; z-index: 1; }
html[data-theme="dark"] .landing-chess { color: #9ab8e9; opacity: .45; }
@media (max-width: 1399px) {
    .landing-chess { opacity: .25; }
    .landing-chess__rail { width: 90px; }
    html[data-theme="dark"] .landing-chess { opacity: .25; }
}
@media (max-width: 1080px) {
    .landing-chess { opacity: .22; }
    .landing-chess__rail { width: 64px; }
    .landing-chess__piece { width: calc(var(--size) * .75); height: calc(var(--size) * .75); }
    html[data-theme="dark"] .landing-chess { opacity: .25; }
}
@media (max-width: 640px) {
    .landing-chess__rail { width: 40px; }
    .landing-chess__piece { width: calc(var(--size) * .6); height: calc(var(--size) * .6); }
}
