:root {
    --background-colour: #351546;
    --accent-colour: #ed77db;
    --mobile-background-position: 60% center;
    --background: url("/themes/disco/background.png");
    --avatar-image: url("/themes/disco/bannon.png");
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: inherit;
    clip-path: inset(var(--disco-floor-top, 80.1%) 0 0);
    animation: disco-floor 3.4s steps(1, end) infinite;
}

@keyframes disco-floor {
    /* Hold each colour for a beat, without sweeping through other hues. */
    0%, 100% { filter: grayscale(1) sepia(1) saturate(5) hue-rotate(150deg) brightness(1); }
    25% { filter: grayscale(1) sepia(1) saturate(5) hue-rotate(220deg) brightness(1.06); }
    50% { filter: grayscale(1) sepia(1) saturate(5) hue-rotate(270deg) brightness(1); }
    75% { filter: grayscale(1) sepia(1) saturate(5) hue-rotate(0deg) brightness(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    body::before { display: none; }
}
