/*
 * Color themes. Each person picks a palette and a light or dark look on the
 * Account page; layout.php puts them on <html> as data-palette and data-theme.
 * Every palette defines every token below for both looks, so app.css only
 * ever reads tokens. Centaur is the default.
 *
 * When adding a token, add it to every palette in both looks.
 */

/* Centaur: Bally's black-and-white Centaur backglass (1981): bone white, black ink, one hard red. */
:root, :root[data-palette="centaur"] {
    --bg: #ece8df;
    --surface: #f8f6f1;
    --surface-2: #e2ddd1;
    --inset: #fdfcf9;
    --text: #121212;
    --muted: #4a4743;
    --border: #c9c3b6;
    --rule: #2a2826;
    --accent: #b3141b;
    --btn: #b3141b;
    --btn-hover: #8f1016;
    --on-btn: #ffffff;
    --good: #2f5d34;
    --bad: #8a1c1c;
    --info: #2c4a7a;
    --focus: #121212;
    --shadow: #cfc9bc;
    --night: #0d0d0d;
    --night-text: #f2efe8;
    --night-muted: #b8b3aa;
    --lamp: #ef3e3e;
    --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
    --tab-title-em: 4.5;   /* width of "MODIFICATIONS" in this font, in em: tab titles shrink on phones so the longest title still fits beside its button */
    color-scheme: light;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #a8860f;
    --series-2: #2c5aa0;
    --series-3: #b3141b;
    --series-4: #00849e;
    --series-5: #6d28d9;
    --series-6: #b8337a;
}
:root[data-palette="centaur"][data-theme="dark"], :root:not([data-palette])[data-theme="dark"] {
    --bg: #0e0e0d;
    --surface: #191817;
    --surface-2: #222120;
    --inset: #121211;
    --text: #ece8df;
    --muted: #aaa49b;
    --border: #34312e;
    --rule: #6b6660;
    --accent: #f25555;
    --btn: #c4161e;
    --btn-hover: #d92a31;
    --on-btn: #ffffff;
    --good: #8fc98f;
    --bad: #ff8a80;
    --info: #9fb6e0;
    --focus: #ece8df;
    --shadow: #000000;
    --night: #000000;
    --night-text: #ece8df;
    --night-muted: #9d978e;
    --lamp: #f25555;
    color-scheme: dark;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #9085e9;
    --series-2: #4fa865;
    --series-3: #e8650f;
    --series-4: #00a6b3;
    --series-5: #b8891c;
    --series-6: #d55181;
}
@media (prefers-color-scheme: dark) {
    :root[data-palette="centaur"][data-theme="system"], :root:not([data-palette])[data-theme="system"] {
        --bg: #0e0e0d;
        --surface: #191817;
        --surface-2: #222120;
        --inset: #121211;
        --text: #ece8df;
        --muted: #aaa49b;
        --border: #34312e;
        --rule: #6b6660;
        --accent: #f25555;
        --btn: #c4161e;
        --btn-hover: #d92a31;
        --on-btn: #ffffff;
        --good: #8fc98f;
        --bad: #ff8a80;
        --info: #9fb6e0;
        --focus: #ece8df;
        --shadow: #000000;
        --night: #000000;
        --night-text: #ece8df;
        --night-muted: #9d978e;
        --lamp: #f25555;
        color-scheme: dark;
        /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
        --series-1: #9085e9;
        --series-2: #4fa865;
        --series-3: #e8650f;
        --series-4: #00a6b3;
        --series-5: #b8891c;
        --series-6: #d55181;
    }
}

/* Plasma Score: the orange gas-plasma score displays in 80s Bally and Williams backboxes: smoked glass and glowing orange. */
:root[data-palette="plasma"] {
    --bg: #e9e4dc;
    --surface: #f6f3ee;
    --surface-2: #ddd5c9;
    --inset: #fcfaf7;
    --text: #1c1612;
    --muted: #574b40;
    --border: #c7bcad;
    --rule: #8a6a50;
    --accent: #983800;
    --btn: #b34400;
    --btn-hover: #8f3600;
    --on-btn: #ffffff;
    --good: #2f5d34;
    --bad: #a11d1d;
    --info: #2c4a7a;
    --focus: #1c1612;
    --shadow: #cfc6b8;
    --night: #17110c;
    --night-text: #f3e6d6;
    --night-muted: #bba893;
    --lamp: #ff7a1a;
    --font-display: "Chakra Petch", "Arial Narrow", sans-serif;
    --tab-title-em: 7.5;   /* width of "MODIFICATIONS" in this font, in em: tab titles shrink on phones so the longest title still fits beside its button */
    color-scheme: light;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #b34400;
    --series-2: #2c5aa0;
    --series-3: #a8860f;
    --series-4: #7a3b8f;
    --series-5: #00849e;
    --series-6: #6d28d9;
}
:root[data-palette="plasma"][data-theme="dark"] {
    --bg: #120d0a;
    --surface: #1e1712;
    --surface-2: #2a2018;
    --inset: #17110d;
    --text: #f3e6d6;
    --muted: #b9a58f;
    --border: #3d2f23;
    --rule: #7a5634;
    --accent: #ff8a2a;
    --btn: #ff7a1a;
    --btn-hover: #ff9440;
    --on-btn: #1a0f06;
    --good: #8fc98f;
    --bad: #ff8a80;
    --info: #9fb6e0;
    --focus: #f3e6d6;
    --shadow: #000000;
    --night: #0a0705;
    --night-text: #f3e6d6;
    --night-muted: #a8957f;
    --lamp: #ff7a1a;
    color-scheme: dark;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #9085e9;
    --series-2: #4fa865;
    --series-3: #e8650f;
    --series-4: #00a6b3;
    --series-5: #b8891c;
    --series-6: #d55181;
}
@media (prefers-color-scheme: dark) {
    :root[data-palette="plasma"][data-theme="system"] {
        --bg: #120d0a;
        --surface: #1e1712;
        --surface-2: #2a2018;
        --inset: #17110d;
        --text: #f3e6d6;
        --muted: #b9a58f;
        --border: #3d2f23;
        --rule: #7a5634;
        --accent: #ff8a2a;
        --btn: #ff7a1a;
        --btn-hover: #ff9440;
        --on-btn: #1a0f06;
        --good: #8fc98f;
        --bad: #ff8a80;
        --info: #9fb6e0;
        --focus: #f3e6d6;
        --shadow: #000000;
        --night: #0a0705;
        --night-text: #f3e6d6;
        --night-muted: #a8957f;
        --lamp: #ff7a1a;
        color-scheme: dark;
        /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
        --series-1: #9085e9;
        --series-2: #4fa865;
        --series-3: #e8650f;
        --series-4: #00a6b3;
        --series-5: #b8891c;
        --series-6: #d55181;
    }
}

/* High Speed: Williams' High Speed (1986): a night-time chase in midnight blue, getaway red, chrome and headlight amber. */
:root[data-palette="highspeed"] {
    --bg: #e4e8ee;
    --surface: #f6f7f9;
    --surface-2: #d9dee6;
    --inset: #fbfcfd;
    --text: #0f1626;
    --muted: #465165;
    --border: #c0c8d4;
    --rule: #5b6880;
    --accent: #c20f2c;
    --btn: #c20f2c;
    --btn-hover: #9c0c23;
    --on-btn: #ffffff;
    --good: #2f5d34;
    --bad: #9b1020;
    --info: #1d4bb8;
    --focus: #1d4bb8;
    --shadow: #c3cad6;
    --night: #0b1430;
    --night-text: #e8ecf3;
    --night-muted: #a3aec4;
    --lamp: #f5b82e;
    --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
    --tab-title-em: 5.9;   /* width of "MODIFICATIONS" in this font, in em: tab titles shrink on phones so the longest title still fits beside its button */
    color-scheme: light;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #a8860f;
    --series-2: #1d4bb8;
    --series-3: #c20f2c;
    --series-4: #00849e;
    --series-5: #6d28d9;
    --series-6: #b8337a;
}
:root[data-palette="highspeed"][data-theme="dark"] {
    --bg: #08101f;
    --surface: #111b31;
    --surface-2: #1a2742;
    --inset: #0c1528;
    --text: #e8ecf3;
    --muted: #9aa6bb;
    --border: #2a3858;
    --rule: #4a5d88;
    --accent: #ff5a68;
    --btn: #d0152f;
    --btn-hover: #b31228;
    --on-btn: #ffffff;
    --good: #8fc98f;
    --bad: #ff8a80;
    --info: #7aa2ff;
    --focus: #f5b82e;
    --shadow: #02060f;
    --night: #040915;
    --night-text: #e8ecf3;
    --night-muted: #8f9bb3;
    --lamp: #f5b82e;
    color-scheme: dark;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #9085e9;
    --series-2: #4fa865;
    --series-3: #e8650f;
    --series-4: #00a6b3;
    --series-5: #b8891c;
    --series-6: #d55181;
}
@media (prefers-color-scheme: dark) {
    :root[data-palette="highspeed"][data-theme="system"] {
        --bg: #08101f;
        --surface: #111b31;
        --surface-2: #1a2742;
        --inset: #0c1528;
        --text: #e8ecf3;
        --muted: #9aa6bb;
        --border: #2a3858;
        --rule: #4a5d88;
        --accent: #ff5a68;
        --btn: #d0152f;
        --btn-hover: #b31228;
        --on-btn: #ffffff;
        --good: #8fc98f;
        --bad: #ff8a80;
        --info: #7aa2ff;
        --focus: #f5b82e;
        --shadow: #02060f;
        --night: #040915;
        --night-text: #e8ecf3;
        --night-muted: #8f9bb3;
        --lamp: #f5b82e;
        color-scheme: dark;
        /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
        --series-1: #9085e9;
        --series-2: #4fa865;
        --series-3: #e8650f;
        --series-4: #00a6b3;
        --series-5: #b8891c;
        --series-6: #d55181;
    }
}

/* Toy Story 4: Jersey Jack's Toy Story 4 (2020): a carnival at night in Imagination Blue and Carnival Red, the two armor colors, lit with Luxo-ball yellow. */
:root[data-palette="toystory"] {
    --bg: #e8eef7;
    --surface: #f8fafd;
    --surface-2: #dbe4f2;
    --inset: #fdfeff;
    --text: #10162b;
    --muted: #44506a;
    --border: #bccbe2;
    --rule: #c8102e;
    --accent: #1a48b0;
    --btn: #c8102e;
    --btn-hover: #a00c24;
    --on-btn: #ffffff;
    --good: #2f5d34;
    --bad: #9b1020;
    --info: #1a48b0;
    --focus: #10162b;
    --shadow: #c3cfe3;
    --night: #163f9e;
    --night-text: #ffffff;
    --night-muted: #c9d5f2;
    --lamp: #ffc72c;
    --font-display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
    --tab-title-em: 7.3;   /* width of "MODIFICATIONS" in this font, in em: tab titles shrink on phones so the longest title still fits beside its button */
    color-scheme: light;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #b58600;
    --series-2: #1a48b0;
    --series-3: #c8102e;
    --series-4: #00849e;
    --series-5: #6d28d9;
    --series-6: #b8337a;
}
:root[data-palette="toystory"][data-theme="dark"] {
    --bg: #0c0f24;
    --surface: #151a36;
    --surface-2: #1e2548;
    --inset: #10142c;
    --text: #eef1fb;
    --muted: #a5aed0;
    --border: #2c3561;
    --rule: #e0414f;
    --accent: #ffc72c;
    --btn: #d3263a;
    --btn-hover: #b81f31;
    --on-btn: #ffffff;
    --good: #8fc98f;
    --bad: #ff8a80;
    --info: #8fb0ff;
    --focus: #ffc72c;
    --shadow: #05071a;
    --night: #0d2470;
    --night-text: #ffffff;
    --night-muted: #b3c0e8;
    --lamp: #ffc72c;
    color-scheme: dark;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #9085e9;
    --series-2: #4fa865;
    --series-3: #e8650f;
    --series-4: #00a6b3;
    --series-5: #b8891c;
    --series-6: #d55181;
}
@media (prefers-color-scheme: dark) {
    :root[data-palette="toystory"][data-theme="system"] {
        --bg: #0c0f24;
        --surface: #151a36;
        --surface-2: #1e2548;
        --inset: #10142c;
        --text: #eef1fb;
        --muted: #a5aed0;
        --border: #2c3561;
        --rule: #e0414f;
        --accent: #ffc72c;
        --btn: #d3263a;
        --btn-hover: #b81f31;
        --on-btn: #ffffff;
        --good: #8fc98f;
        --bad: #ff8a80;
        --info: #8fb0ff;
        --focus: #ffc72c;
        --shadow: #05071a;
        --night: #0d2470;
        --night-text: #ffffff;
        --night-muted: #b3c0e8;
        --lamp: #ffc72c;
        color-scheme: dark;
        /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
        --series-1: #9085e9;
        --series-2: #4fa865;
        --series-3: #e8650f;
        --series-4: #00a6b3;
        --series-5: #b8891c;
        --series-6: #d55181;
    }
}

/* FlipOff: the default Arcade look of FlipOff, Nate's tournament app, purple first, with the logo's pink on titles and big numbers and its aqua on links, outline buttons and the active tab. */
:root[data-palette="flipoff"] {
    --bg: #f1ecff;
    --surface: #ffffff;
    --surface-2: #efe7ff;
    --inset: #ffffff;
    --text: #1b0f33;
    --muted: #5e4f80;
    --border: #cbbbe8;
    --rule: #6b2fb8;
    --accent: #5b21b6;
    --btn: #6d28d9;
    --btn-hover: #5b21b6;
    --on-btn: #ffffff;
    --good: #08734d;
    --bad: #c8102e;
    --info: #5b2bb5;
    --focus: #1b0f33;
    --shadow: #b9a3e0;
    --night: #100920;
    --night-text: #f6f0ff;
    --night-muted: #a99bd0;
    --lamp: #6d28d9;
    --hot: #c2007f;
    --cool: #00707f;
    --cool-lamp: #00b8d4;
    --invest-machine: #007c99;
    --invest-shipping: #b45309;
    --invest-mods: #c2007f;
    --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
    --tab-title-em: 4.5;   /* width of "MODIFICATIONS" in this font, in em: tab titles shrink on phones so the longest title still fits beside its button */
    color-scheme: light;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #a8860f;
    --series-2: #7a3b8f;
    --series-3: #2563eb;
    --series-4: #c2007f;
    --series-5: #6d28d9;
    --series-6: #00849e;
}
:root[data-palette="flipoff"][data-theme="dark"] {
    --bg: #0a0614;
    --surface: #140b2b;
    --surface-2: #22123f;
    --inset: #0e0820;
    --text: #f6f0ff;
    --muted: #a99bd0;
    --border: #4a2b7a;
    --rule: #9d6bff;
    --accent: #b794ff;
    --btn: #6d28d9;
    --btn-hover: #7c3aed;
    --on-btn: #ffffff;
    --good: #3dff9a;
    --bad: #ff6b85;
    --info: #c4a6ff;
    --focus: #3ee6ff;
    --shadow: #000000;
    --night: #100920;
    --night-text: #f6f0ff;
    --night-muted: #a99bd0;
    --lamp: #8b5cf6;
    --hot: #ff4fd0;
    --cool: #3ee6ff;
    --cool-lamp: #00e5ff;
    --invest-machine: #109fbd;
    --invest-shipping: #c47c26;
    --invest-mods: #ec3cbc;
    color-scheme: dark;
    /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
    --series-1: #8b5cf6;
    --series-2: #2fae6a;
    --series-3: #ec3cbc;
    --series-4: #c47c26;
    --series-5: #109fbd;
    --series-6: #d55181;
}
@media (prefers-color-scheme: dark) {
    :root[data-palette="flipoff"][data-theme="system"] {
        --bg: #0a0614;
        --surface: #140b2b;
        --surface-2: #22123f;
        --inset: #0e0820;
        --text: #f6f0ff;
        --muted: #a99bd0;
        --border: #4a2b7a;
        --rule: #9d6bff;
        --accent: #b794ff;
        --btn: #6d28d9;
        --btn-hover: #7c3aed;
        --on-btn: #ffffff;
        --good: #3dff9a;
        --bad: #ff6b85;
        --info: #c4a6ff;
        --focus: #3ee6ff;
        --shadow: #000000;
        --night: #100920;
        --night-text: #f6f0ff;
        --night-muted: #a99bd0;
        --lamp: #8b5cf6;
        --hot: #ff4fd0;
        --cool: #3ee6ff;
        --cool-lamp: #00e5ff;
        --invest-machine: #109fbd;
        --invest-shipping: #c47c26;
        --invest-mods: #ec3cbc;
        color-scheme: dark;
        /* Value page > Mod spending wheel: six colours in slice order, checked as a set (dataviz validator) for every wheel size from 2 to 6, the last slice touching the first. */
        --series-1: #8b5cf6;
        --series-2: #2fae6a;
        --series-3: #ec3cbc;
        --series-4: #c47c26;
        --series-5: #109fbd;
        --series-6: #d55181;
    }
}

/* High Speed leans its titles forward like 80s racing lettering. */
:root[data-palette="highspeed"] :is(.title, .section-title, .page-head h1, .narrow h1, .empty h2,
    .machine-card__name, .feature h2, .score__value, .plays__big) {
    font-style: italic;
}

/* Toy Story 4's title face has one weight: show it as drawn, never faux-bolded. */
:root[data-palette="toystory"] {
    font-synthesis: style;
}


/* FlipOff titles use Centaur's condensed face so rows don't wrap; the Night look makes them glow like neon. */
:root[data-palette="flipoff"][data-theme="dark"] :is(.title, .page-head h1, .score__value--accent, .plays__big--accent) {
    text-shadow: 0 0 6px currentColor, 0 0 18px color-mix(in srgb, currentColor 55%, transparent);
}
@media (prefers-color-scheme: dark) {
    :root[data-palette="flipoff"][data-theme="system"] :is(.title, .page-head h1, .score__value--accent, .plays__big--accent) {
        text-shadow: 0 0 6px currentColor, 0 0 18px color-mix(in srgb, currentColor 55%, transparent);
    }
}

/* FlipOff's Night shift look, copied from FlipOff's app.css: purple glow at the top,
   the synthwave floor grid (pink lines running away, purple across), CRT scanlines and purple neon-tube card frames (purple, not FlipOff's pink, per Nate). */
:root[data-palette="flipoff"] { --radius: 6px; }
/* Default theme: the Pinside line on machine cards is pink (Nate, 2026-11-02). The chip sits on
   the dark --night strip in light mode too, so it always takes the bright dark-mode pink. */
:root[data-palette="flipoff"] .chip--pinside { color: #ff4fd0; }
:root[data-palette="flipoff"][data-theme="dark"] body {
    background: radial-gradient(1100px 520px at 50% -8%, #3b0a5c, transparent 70%), var(--bg);
    background-attachment: fixed;
}
:root[data-palette="flipoff"][data-theme="dark"] body::before {
    content: ""; position: fixed; left: -50%; right: -50%; bottom: 0; height: 46vh; z-index: -1; pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(255, 46, 196, .35) 0 2px, transparent 2px 80px),
        repeating-linear-gradient(0deg, rgba(124, 58, 237, .45) 0 2px, transparent 2px 46px);
    transform: perspective(320px) rotateX(62deg);
    transform-origin: bottom;
    mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    animation: flipoff-gridrun 3s linear infinite;
}
:root[data-palette="flipoff"][data-theme="dark"] body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px);
}
:root[data-palette="flipoff"][data-theme="dark"] :is(.card, .machine-card) {
    background: rgba(18, 10, 38, .92);
    border: 2px solid #6d28d9;
    box-shadow: 0 0 0 2px #6d28d933, 0 0 22px #6d28d92e, inset 0 0 18px #00e5ff14;
}
:root[data-palette="flipoff"][data-theme="dark"] .btn--primary { box-shadow: 0 0 16px #7c3aed73; }
/* Default dark: collection pictures and the header profile picture get the same aqua frame as the count chips (Nate, 2026-11-02). */
:root[data-palette="flipoff"][data-theme="dark"] :is(.machine-card .machine-art, .app-header .avatar--small) { border-color: var(--cool); }
@media (prefers-color-scheme: dark) {
    :root[data-palette="flipoff"][data-theme="system"] body {
    background: radial-gradient(1100px 520px at 50% -8%, #3b0a5c, transparent 70%), var(--bg);
    background-attachment: fixed;
}
    :root[data-palette="flipoff"][data-theme="system"] body::before {
    content: ""; position: fixed; left: -50%; right: -50%; bottom: 0; height: 46vh; z-index: -1; pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(255, 46, 196, .35) 0 2px, transparent 2px 80px),
        repeating-linear-gradient(0deg, rgba(124, 58, 237, .45) 0 2px, transparent 2px 46px);
    transform: perspective(320px) rotateX(62deg);
    transform-origin: bottom;
    mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    animation: flipoff-gridrun 3s linear infinite;
}
    :root[data-palette="flipoff"][data-theme="system"] body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px);
}
    :root[data-palette="flipoff"][data-theme="system"] :is(.card, .machine-card) {
    background: rgba(18, 10, 38, .92);
    border: 2px solid #6d28d9;
    box-shadow: 0 0 0 2px #6d28d933, 0 0 22px #6d28d92e, inset 0 0 18px #00e5ff14;
}
    :root[data-palette="flipoff"][data-theme="system"] .btn--primary { box-shadow: 0 0 16px #7c3aed73; }
    :root[data-palette="flipoff"][data-theme="system"] :is(.machine-card .machine-art, .app-header .avatar--small) { border-color: var(--cool); }
}
@keyframes flipoff-gridrun { to { background-position: 0 0, 0 46px; } }
@media (prefers-reduced-motion: reduce) {
    :root[data-palette="flipoff"] body::before { animation: none; }
}

/*
 * The FlipOff logo (flipoff_logo() in app/helpers.php): the same neon tubes in
 * every palette, colored to match. It has no plate of its own and sits right on
 * the header, so each palette has a light-look and a dark-look version.
 * Every palette defines every --logo-* token in both looks. --logo-glow scales
 * the glow: softer in light so the letters stay crisp.
 */
/* FlipOff, light: deep pink FLIP, OFF in the theme's purple, teal flippers, gold ball. */
:root, :root[data-palette="flipoff"] {
    --logo-flip: #d6008c; --logo-flip-core: #e459b4;
    --logo-off: #6d28d9; --logo-off-core: #9a69e4;
    --logo-flippers: #0094b0; --logo-flippers-core: #59b9cc;
    --logo-ball: #d19a00; --logo-ball-core: #e1bd59;
    --logo-wash: .12; --logo-glow: .45;
}
/* Centaur, light: black-ink FLIP, the hard red lights OFF and the flippers, a steel ball. */
:root[data-palette="centaur"] {
    --logo-flip: #121212; --logo-flip-core: #656565;
    --logo-off: #b3141b; --logo-off-core: #ce666b;
    --logo-flippers: #b3141b; --logo-flippers-core: #ce666b;
    --logo-ball: #4a4743; --logo-ball-core: #898785;
    --logo-wash: .08; --logo-glow: .45;
}
/* Plasma Score, light: burnt-orange FLIP and flippers, amber OFF. */
:root[data-palette="plasma"] {
    --logo-flip: #b34400; --logo-flip-core: #ce8559;
    --logo-off: #d97500; --logo-off-core: #e6a559;
    --logo-flippers: #b34400; --logo-flippers-core: #ce8559;
    --logo-ball: #d97500; --logo-ball-core: #e6a559;
    --logo-wash: .12; --logo-glow: .45;
}
/* High Speed, light: getaway-red FLIP, amber OFF, steel-blue flippers. */
:root[data-palette="highspeed"] {
    --logo-flip: #c20f2c; --logo-flip-core: #d76376;
    --logo-off: #c98700; --logo-off-core: #dcb159;
    --logo-flippers: #3d4c6b; --logo-flippers-core: #818b9f;
    --logo-ball: #c98700; --logo-ball-core: #dcb159;
    --logo-wash: .1; --logo-glow: .45;
}
/* Toy Story 4, light: Carnival Red FLIP, Luxo-yellow OFF, Imagination Blue flippers. */
:root[data-palette="toystory"] {
    --logo-flip: #c8102e; --logo-flip-core: #db6477;
    --logo-off: #e0a000; --logo-off-core: #ebc159;
    --logo-flippers: #1a48b0; --logo-flippers-core: #6a88cc;
    --logo-ball: #e0a000; --logo-ball-core: #ebc159;
    --logo-wash: .1; --logo-glow: .45;
}
/* FlipOff, dark: pink FLIP, OFF in the theme's purple, cyan flippers, yellow ball. */
:root[data-palette="flipoff"][data-theme="dark"] {
    --logo-flip: #ff2ec4; --logo-flip-core: #ffe3f8;
    --logo-off: #6d28d9; --logo-off-core: #e4d6ff;
    --logo-flippers: #00e5ff; --logo-flippers-core: #e6fdff;
    --logo-ball: #ffe14d; --logo-ball-core: #fff9d6;
    --logo-glow: 1; --logo-wash: .22;
}
/* Centaur, dark: bone-white FLIP, red OFF and flippers, a chrome ball. */
:root[data-palette="centaur"][data-theme="dark"] {
    --logo-flip: #ece8df; --logo-flip-core: #ffffff;
    --logo-off: #ef3e3e; --logo-off-core: #ffdcd8;
    --logo-flippers: #ef3e3e; --logo-flippers-core: #ffdcd8;
    --logo-ball: #c9c3b6; --logo-ball-core: #ffffff;
    --logo-glow: 1; --logo-wash: .12;
}
/* Plasma Score, dark: glowing orange like a score display, OFF burning hotter. */
:root[data-palette="plasma"][data-theme="dark"] {
    --logo-flip: #ff6a00; --logo-flip-core: #ffdcbf;
    --logo-off: #ffc04d; --logo-off-core: #fff3dc;
    --logo-flippers: #ff6a00; --logo-flippers-core: #ffdcbf;
    --logo-ball: #ffd27a; --logo-ball-core: #fff6e3;
    --logo-glow: 1; --logo-wash: .2;
}
/* High Speed, dark: getaway-red FLIP, headlight-amber OFF, chrome flippers. */
:root[data-palette="highspeed"][data-theme="dark"] {
    --logo-flip: #ff3b52; --logo-flip-core: #ffe0e4;
    --logo-off: #f5b82e; --logo-off-core: #fff3d1;
    --logo-flippers: #e4e8ee; --logo-flippers-core: #ffffff;
    --logo-ball: #f5b82e; --logo-ball-core: #fff3d1;
    --logo-glow: 1; --logo-wash: .18;
}
/* Toy Story 4, dark: Carnival Red FLIP, Luxo-yellow OFF, sky-blue flippers. */
:root[data-palette="toystory"][data-theme="dark"] {
    --logo-flip: #ff4d5e; --logo-flip-core: #ffe3e6;
    --logo-off: #ffc72c; --logo-off-core: #fff6d6;
    --logo-flippers: #6fc8ff; --logo-flippers-core: #e6f6ff;
    --logo-ball: #ffc72c; --logo-ball-core: #fff6d6;
    --logo-glow: 1; --logo-wash: .18;
}
@media (prefers-color-scheme: dark) {
    :root[data-palette="flipoff"][data-theme="system"] {
        --logo-flip: #ff2ec4; --logo-flip-core: #ffe3f8;
        --logo-off: #6d28d9; --logo-off-core: #e4d6ff;
        --logo-flippers: #00e5ff; --logo-flippers-core: #e6fdff;
        --logo-ball: #ffe14d; --logo-ball-core: #fff9d6;
        --logo-glow: 1; --logo-glow: 1; --logo-wash: .22;
    }
    :root[data-palette="centaur"][data-theme="system"] {
        --logo-flip: #ece8df; --logo-flip-core: #ffffff;
        --logo-off: #ef3e3e; --logo-off-core: #ffdcd8;
        --logo-flippers: #ef3e3e; --logo-flippers-core: #ffdcd8;
        --logo-ball: #c9c3b6; --logo-ball-core: #ffffff;
        --logo-glow: 1; --logo-glow: 1; --logo-wash: .12;
    }
    :root[data-palette="plasma"][data-theme="system"] {
        --logo-flip: #ff6a00; --logo-flip-core: #ffdcbf;
        --logo-off: #ffc04d; --logo-off-core: #fff3dc;
        --logo-flippers: #ff6a00; --logo-flippers-core: #ffdcbf;
        --logo-ball: #ffd27a; --logo-ball-core: #fff6e3;
        --logo-glow: 1; --logo-glow: 1; --logo-wash: .2;
    }
    :root[data-palette="highspeed"][data-theme="system"] {
        --logo-flip: #ff3b52; --logo-flip-core: #ffe0e4;
        --logo-off: #f5b82e; --logo-off-core: #fff3d1;
        --logo-flippers: #e4e8ee; --logo-flippers-core: #ffffff;
        --logo-ball: #f5b82e; --logo-ball-core: #fff3d1;
        --logo-glow: 1; --logo-glow: 1; --logo-wash: .18;
    }
    :root[data-palette="toystory"][data-theme="system"] {
        --logo-flip: #ff4d5e; --logo-flip-core: #ffe3e6;
        --logo-off: #ffc72c; --logo-off-core: #fff6d6;
        --logo-flippers: #6fc8ff; --logo-flippers-core: #e6f6ff;
        --logo-ball: #ffc72c; --logo-ball-core: #fff6d6;
        --logo-glow: 1; --logo-glow: 1; --logo-wash: .18;
    }
}
