/* Shared difficulty palette for Word Search and Anagrams. */
body:is(.puzzle, .anagrams).arcade-site {
    --play-bg: hsl(var(--hue), 20%, 9%);
    /*--play-surface: hsl(var(--hue), 50%, 90%);*/
    --play-surface: hsl(var(--hue), 75%, 90%);
    --play-soft: hsl(var(--hue), 22%, 86%);
    --play-border: hsl(var(--hue), 24%, 24%, .12);
    --play-ink: hsl(var(--hue), 32%, 15%);
    --play-muted: hsl(var(--hue), 15%, 35%);
    --play-accent: hsl(var(--hue), 53%, 31%);
    --word-fill: hsl(var(--hue), 55%, 80%);
    --word-border: hsl(var(--hue), 35%, 58%);
    background: radial-gradient(ellipse at 12% 0, hsl(var(--hue), 26%, 17%), transparent 60%), var(--play-bg);
    color: var(--play-ink);
    background-attachment: scroll;
}

body:is(.puzzle, .anagrams).arcade-site.dark-mode {
    --play-bg: hsl(var(--hue), 40%, 7%);
    --play-surface: hsl(var(--hue), 40%, 14%);
    --play-soft: hsl(var(--hue), 40%, 20%);
    --play-border: hsl(var(--hue), 30%, 32%);
    --play-ink: hsl(var(--hue), 20%, 92%);
    --play-muted: hsl(var(--hue), 20%, 76%);
    --play-accent: hsl(var(--hue), 55%, 72%);
    --word-fill: hsl(var(--hue), 40%, 23%);
    --word-border: hsl(var(--hue), 36%, 38%);
    --support-bg: hsl(var(--hue), 40%, 10%);
    --support-raised: hsl(var(--hue), 38%, 18%);
    --support-border: hsl(var(--hue), 30%, 28%);
    --support-ink: hsl(var(--hue), 20%, 92%);
    --support-muted: hsl(var(--hue), 20%, 76%);
    --support-accent: hsl(var(--hue), 55%, 72%);
    background-color: var(--play-bg);
    background-image:
        radial-gradient(ellipse at 0% 0%, hsl(var(--hue), 55%, 21%, .65), transparent 55%),
        radial-gradient(ellipse at 100% 30%, hsl(calc(var(--hue) + 28), 55%, 17%, .65), transparent 58%),
        radial-gradient(ellipse at 40% 100%, hsl(calc(var(--hue) + 12), 45%, 13%, .45), transparent 55%),
        linear-gradient(hsl(var(--hue), 24%, 75%, .025) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--hue), 24%, 75%, .025) 1px, transparent 1px);
    background-size: auto, auto, auto, 56px 56px, 56px 56px;
    background-position: 0 0;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}

body:is(.puzzle, .anagrams).arcade-site:not(.dark-mode) {
    --play-bg: hsl(var(--hue), 28%, 28%);
    --play-surface: hsl(var(--hue), 30%, 96%);
    --play-soft: hsl(var(--hue), 26%, 89%);
    --play-border: hsl(var(--hue), 20%, 77%);
    --play-ink: hsl(var(--hue), 23%, 20%);
    --play-muted: hsl(var(--hue), 13%, 39%);
    --play-accent: hsl(var(--hue), 40%, 32%);
    --word-fill: hsl(var(--hue), 41%, 90%);
    --word-border: hsl(var(--hue), 28%, 73%);
    --support-bg: hsl(var(--hue), 24%, 95%);
    --support-raised: hsl(var(--hue), 30%, 87%);
    --support-border: hsl(var(--hue), 20%, 76%);
    --support-ink: hsl(var(--hue), 23%, 20%);
    --support-muted: hsl(var(--hue), 13%, 38%);
    --support-accent: hsl(var(--hue), 40%, 32%);
    background-color: var(--play-bg);
    background-image:
        radial-gradient(ellipse at 0% 0%, hsl(var(--hue), 42%, 31%, .65), transparent 52%),
        radial-gradient(ellipse at 100% 25%, hsl(calc(var(--hue) + 35), 40%, 29%, .7), transparent 55%),
        radial-gradient(ellipse at 40% 100%, hsl(calc(var(--hue) - 10), 34%, 33%, .7), transparent 55%),
        linear-gradient(hsl(var(--hue), 28%, 80%, .035) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--hue), 28%, 80%, .035) 1px, transparent 1px);
    background-size: auto, auto, auto, 56px 56px, 56px 56px;
    background-position: 0 0;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
}

body:is(.puzzle, .anagrams).arcade-site:not(.dark-mode) #top-menu {
    --support-bg: hsl(var(--hue), 32%, 22%);
    --support-raised: hsl(var(--hue), 30%, 34%);
    --support-border: hsl(var(--hue), 28%, 46%);
    --support-ink: hsl(var(--hue), 24%, 96%);
    --support-muted: hsl(var(--hue), 22%, 87%);
    --support-accent: hsl(var(--hue), 48%, 80%);
}

body:is(.puzzle, .anagrams).arcade-site:not(.dark-mode) #top-menu #top-menu_inp {
    background: var(--support-accent);
    color: hsl(var(--hue), 32%, 17%);
}

body:is(.puzzle, .anagrams).arcade-site:not(.dark-mode) #top-menu .game-menu-more {
    border-top-color: hsl(var(--hue), 28%, 80%, .25);
}

body:is(.puzzle, .anagrams).arcade-site:not(.dark-mode) #top-menu :focus-visible {
    outline-color: var(--support-accent);
}
