/* Christmas (1-26 Dec): red, green and gold, a garland of twinkling bulbs, snow on the logo. */
:root[data-theme="s-christmas"] {
  --bg: #f7f3ec; --surface: #fffdf8; --text: #1f2a1f; --muted: #5f6b5c; --line: #e2d8c6;
  --accent: #b3122b; --accent-text: #ffffff; --link: #1d6b3a; --ruler: #1d6b3a;
  --logo-bg: #b3122b; --logo-fg: #ffffff;
  --logo-deco-display: block; --logo-deco-top: -12%; --logo-deco-right: -4%; --logo-deco-size: 108%;
  --logo-deco: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'><path d='M3 9c0-4 4-6 8-6 2 0 3 1 5 1s4-2 8-2 9 2 9 7c-2-1-3-1-4 0-2-1-4-1-6 0-2-1-4-1-6 0-2-1-4-1-6 0-2-1-5-1-8 0z' fill='%23ffffff' stroke='%23d9e2ea' stroke-width='.8'/></svg>");
}
:root[data-theme="s-christmas"][data-scheme="dark"] {
  --bg: #0f1a14; --surface: #16241b; --text: #f1ece0; --muted: #b3ab98; --line: #2a3a2f;
  --accent: #e0344f; --accent-text: #ffffff; --link: #e9c46a; --ruler: #3f8f5a;
  --logo-bg: #e0344f; --logo-fg: #ffffff;
}
:root[data-theme="s-christmas"] .topbar::after {
  height: 16px;
  background:
    radial-gradient(circle at 50% 70%, #ff3b3b 3.5px, transparent 4px) 0 0 / 60px 16px repeat-x,
    radial-gradient(circle at 50% 70%, #ffd23f 3.5px, transparent 4px) 20px 0 / 60px 16px repeat-x,
    radial-gradient(circle at 50% 70%, #3fa7ff 3.5px, transparent 4px) 40px 0 / 60px 16px repeat-x,
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='16'><path d='M0 4 Q10 12 20 4' fill='none' stroke='%231d6b3a' stroke-width='1.5'/></svg>") 0 0 / 20px 16px repeat-x;
  animation: xmas-twinkle 2.4s steps(3) infinite;
}
@keyframes xmas-twinkle { 33% { filter: hue-rotate(90deg) brightness(1.2); } 66% { filter: hue-rotate(200deg); } }
:root[data-theme="s-christmas"] .app { border-top: 3px solid var(--accent); }
/* Effects: light snow */
:root[data-theme="s-christmas"] {
  --fx1-display: block; --fx1-kind: bb-fall; --fx1-tile: 600px; --fx1-speed: 40s; --fx1-o: .6; --fx1-drift: 60px;
  --fx1-img: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><defs><g id='fx1'><g fill='%23ffffff' stroke='%237fa3c4' stroke-width='.9'><circle cx='30' cy='60' r='2.5'/><circle cx='140' cy='20' r='1.8'/><circle cx='250' cy='110' r='3'/><circle cx='90' cy='190' r='2'/><circle cx='200' cy='250' r='2.6'/><circle cx='280' cy='280' r='1.6'/></g></g></defs><use href='%23fx1' x='0' y='0'/><use href='%23fx1' x='0' y='-600'/><use href='%23fx1' x='-600' y='0'/><use href='%23fx1' x='-600' y='-600'/><use href='%23fx1' x='186' y='384'/><use href='%23fx1' x='186' y='-216'/><use href='%23fx1' x='-414' y='384'/><use href='%23fx1' x='-414' y='-216'/><use href='%23fx1' x='393' y='141'/><use href='%23fx1' x='393' y='-459'/><use href='%23fx1' x='-207' y='141'/><use href='%23fx1' x='-207' y='-459'/><use href='%23fx1' x='522' y='489'/><use href='%23fx1' x='522' y='-111'/><use href='%23fx1' x='-78' y='489'/><use href='%23fx1' x='-78' y='-111'/></svg>");
}
/* Series colours: people and sources in the calendar, graphs */
:root[data-theme="s-christmas"] { --c1: #a5273a; --c2: #27a533; --c3: #5227a5; --c4: #a57227; --c5: #27a592; --c6: #a52799; --c7: #7aa527; --c8: #275aa5; }
:root[data-theme="s-christmas"][data-scheme="dark"] { --c1: #e07b8b; --c2: #7be084; --c3: #9e7be0; --c4: #e0b77b; --c5: #7be0d0; --c6: #e07bd7; --c7: #bde07b; --c8: #7ba4e0; }
/* Games: this theme's boards, pieces, flags and treats */
:root[data-theme="s-christmas"] { --gm-p0: #d42a2a; --gm-p1: #e8c14a; --gm-board: #1f5a3a; --gm-hole: #f4f7f4; --gm-cover: #2f7a4f; --gm-flag: "⭐";
  --gm-mine: "🎁"; --gm-food: "🍪"; }

/* Home tiles: this season's band on top, its emblem in the corner */
:root[data-theme="s-christmas"] {
  --tile-bg: repeating-linear-gradient(135deg, #c8102e 0 8px, #fff 8px 16px, #1f7a3a 16px 24px, #fff 24px 32px) top / 100% 5px no-repeat,
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 9%, var(--card-bg, var(--surface))), var(--card-bg, var(--surface)) 60%);
  --tile-deco: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27><text x=%2750%27 y=%2754%27 font-size=%2778%27 text-anchor=%27middle%27 dominant-baseline=%27middle%27>%F0%9F%8E%84</text></svg>"); --tile-deco-display: block; --tile-deco-size: 4.2rem; --tile-deco-o: .32;
  --tile-deco-inset: auto -.4rem -.5rem auto; --tile-deco-hover: rotate(-12deg) scale(1.2);
}
/* Success (ok, done, up, free): fir green (02/11, he asked: each theme's own colour, not always green / blue) */
:root[data-theme="s-christmas"][data-scheme="light"] { --success: #07a250; --success-text: #0f1a14; }
:root[data-theme="s-christmas"][data-scheme="dark"] { --success: #6fd08a; --success-text: #0f1a14; }

/* Read easily (05/11, WCAG AA 4.5:1 for text, tools/qa/contrast_tokens.py): the same colours, nudged just enough */
:root[data-theme="s-christmas"][data-scheme="dark"] { --accent: #da334d; }

/* (26/11, his "gauges' gradient sad: two very distinctive colours") the gauges' second colour, the theme's own: far
   from --success (--g-ok2: the ok gauges, the partly-up hours' stripes) and from the gauge colour (--g-plain2) */
:root[data-theme="s-christmas"][data-scheme="light"] { --g-ok2: var(--c6); --g-plain2: var(--c5); }
:root[data-theme="s-christmas"][data-scheme="dark"] { --g-ok2: var(--c6); --g-plain2: var(--c5); }
