/* Todoalist seasonal themes: Pascha, 4th of July, Halloween and Christmas.
   Each is offered by its feature flag (featureflags.json) and applied like any theme, through <html data-theme>.
   Shared markup, hidden in every other theme: .season-garland (header), .brand-badge (logo), .season-hero with its
   countdown and .season-tip (home page), .season-add-icon (Add button), .season-scene (above the footer).
   All animation stops for reduced motion (see site.css). */

/* ---- Palettes ------------------------------------------------------------------------------ */

/* Pascha: candle-white ground, Byzantine red, gold. A light theme: red text #9a0f28 keeps 7:1. */
:root[data-theme="pascha"] {
  --bg: #fbf6ec;
  --bg-raised: #fffdf8;
  --surface: #ffffff;
  --surface-2: #f8eaea;
  --border: #ebdfca;
  --border-strong: #d6c3a1;
  --text: #2a1712;
  --text-muted: #5a4337;
  --text-faint: #6e584a;
  --accent: #b30f2c;
  --accent-hover: #950c24;
  --accent-text: #9a0f28;
  --accent-ink: #ffffff;
  --accent-soft: rgba(179, 15, 44, 0.07);
  --accent-line: rgba(179, 15, 44, 0.35);
  --warn: #8a5300;
  --warn-soft: rgba(176, 106, 0, 0.08);
  --danger: #b3202f;
  --grid-line: rgba(42, 23, 18, 0.05);
  --header-bg: rgba(255, 253, 248, 0.94);
  --shadow: 0 1px 2px rgba(42, 23, 18, 0.05);
  --radius: 16px;
  color-scheme: light;
}

/* 4th of July: night-sky navy, flag red buttons (white text 5.9:1), soft red and gold text accents. */
:root[data-theme="july4"] {
  --bg: #0a1430;
  --bg-raised: #0e1a3a;
  --surface: #101e42;
  --surface-2: #172a58;
  --border: #22365f;
  --border-strong: #344b7c;
  --text: #f4f6fb;
  --text-muted: #c4cce2;
  --text-faint: #9aa6c4;
  --accent: #c8102e;
  --accent-hover: #de2a47;
  --accent-text: #ff8d9b;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 141, 155, 0.1);
  --accent-line: rgba(255, 141, 155, 0.4);
  --warn: #ffd166;
  --warn-soft: rgba(255, 209, 102, 0.08);
  --danger: #ff8a94;
  --grid-line: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(14, 26, 58, 0.94);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --radius: 12px;
  --countdown: #ffd166;
  color-scheme: dark;
}

/* Halloween: midnight purple, pumpkin orange buttons with dark text (7.9:1), orange text accents. */
:root[data-theme="halloween"] {
  --bg: #100b17;
  --bg-raised: #160f20;
  --surface: #1a1226;
  --surface-2: #241933;
  --border: #33244a;
  --border-strong: #4b3669;
  --text: #f5efe6;
  --text-muted: #cdc1d9;
  --text-faint: #a395b5;
  --accent: #ff7a1a;
  --accent-hover: #ff9442;
  --accent-text: #ff9a3c;
  --accent-ink: #1a0b00;
  --accent-soft: rgba(255, 122, 26, 0.1);
  --accent-line: rgba(255, 154, 60, 0.4);
  --warn: #ff9a3c;
  --warn-soft: rgba(255, 154, 60, 0.08);
  --danger: #ff8a94;
  --grid-line: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(22, 15, 32, 0.94);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --radius: 12px;
  color-scheme: dark;
}

/* Christmas: pine-green ground, berry-red buttons (white text 6.8:1), gold for accent text and focus (10:1).
   Red is never used for text on green: it would fall under 3:1. */
:root[data-theme="christmas"] {
  --bg: #0b1912;
  --bg-raised: #0f2018;
  --surface: #11241b;
  --surface-2: #173024;
  --border: #21402f;
  --border-strong: #31583f;
  --text: #f6f1e7;
  --text-muted: #c5cdc2;
  --text-faint: #98a89b;
  --accent: #d7263d;
  --accent-hover: #e8475b;
  --accent-text: #f2c14e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(242, 193, 78, 0.08);
  --accent-line: rgba(242, 193, 78, 0.38);
  --warn: #f2c14e;
  --warn-soft: rgba(242, 193, 78, 0.08);
  --danger: #ff8a94;
  --grid-line: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(15, 32, 24, 0.94);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --radius: 16px;
  color-scheme: dark;
}

:root[data-theme="pascha"] :focus-visible, :root[data-theme="july4"] :focus-visible, :root[data-theme="halloween"] :focus-visible, :root[data-theme="christmas"] :focus-visible { outline-color: var(--accent-text); }
:root[data-theme="pascha"] .field:focus, :root[data-theme="july4"] .field:focus, :root[data-theme="halloween"] .field:focus, :root[data-theme="christmas"] .field:focus { border-color: var(--accent-text); }
:root[data-theme="pascha"] ::selection, :root[data-theme="july4"] ::selection, :root[data-theme="halloween"] ::selection, :root[data-theme="christmas"] ::selection { background: var(--accent-text); color: var(--bg); }
:root[data-theme="july4"] .site-header, :root[data-theme="halloween"] .site-header, :root[data-theme="christmas"] .site-header { border-bottom-color: transparent; }
:root[data-theme="pascha"] .site-header { border-bottom-color: #e3d2b0; }

.theme-swatch-pascha { background: linear-gradient(135deg, #fbf6ec 50%, #b30f2c 50%); }
.theme-swatch-july4 { background: linear-gradient(135deg, #0a1430 50%, #c8102e 50%); }
.theme-swatch-halloween { background: linear-gradient(135deg, #100b17 50%, #ff7a1a 50%); }
.theme-swatch-christmas { background: linear-gradient(135deg, #0b1912 50%, #d7263d 50%); }

/* ---- Shared seasonal pieces ---------------------------------------------------------------- */

.season-garland i { position: relative; flex: 1 1 0; }
:root[data-theme="pascha"] .season-garland, :root[data-theme="july4"] .season-garland, :root[data-theme="halloween"] .season-garland, :root[data-theme="christmas"] .season-garland { display: flex; position: absolute; left: 0; right: 0; top: 100%; height: 34px; margin-top: -8px; pointer-events: none; }
@media (max-width: 640px) { .season-garland i:nth-child(n+13) { display: none; } }

.brand-mark-wrap { position: relative; flex: none; }
:root[data-theme="pascha"] .brand-badge, :root[data-theme="july4"] .brand-badge, :root[data-theme="halloween"] .brand-badge, :root[data-theme="christmas"] .brand-badge { display: block; position: absolute; top: -9px; right: -10px; width: 22px; height: 18px; background: no-repeat center / contain; }
:root[data-theme="christmas"] .brand-badge { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cpath d='M2 9c3-6 7-7 9-3-3-1-5 1-6 4z' fill='%232e8b57'/%3E%3Cpath d='M20 9c-3-6-7-7-9-3 3-1 5 1 6 4z' fill='%233aa569'/%3E%3Ccircle cx='9.5' cy='9' r='2.4' fill='%23ff4d5e'/%3E%3Ccircle cx='13' cy='10' r='2.4' fill='%23e8384f'/%3E%3C/svg%3E"); top: -8px; height: 16px; }
:root[data-theme="halloween"] .brand-badge { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cpath d='M11 4c1-2.5 2.6-3 3.6-2.6' fill='none' stroke='%235be38a' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M11 5c-2.6-1.4-6.3-.6-7.7 2.4-1.5 3.3.3 8.6 4.4 9.4 1.2.2 2.3-.2 3.3-.7 1 .5 2.1.9 3.3.7 4.1-.8 5.9-6.1 4.4-9.4C17.3 4.4 13.6 3.6 11 5z' fill='%23ff7a1a' stroke='%23160f20' stroke-width='.8'/%3E%3Cpath d='M6.2 9.2l1.8-1 .6 1.7zM15.8 9.2l-1.8-1-.6 1.7zM7 12.2c1.4 1.4 2.6.6 4 1.4 1.4-.8 2.6 0 4-1.4-1.2 2.4-6.8 2.4-8 0z' fill='%232b1004'/%3E%3C/svg%3E"); top: -10px; right: -11px; }
:root[data-theme="july4"] .brand-badge { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cpath d='M13 1l1.6 3.4 3.7.4-2.8 2.5.8 3.6L13 9.1l-3.3 1.8.8-3.6L7.7 4.8l3.7-.4z' fill='%23ffd166'/%3E%3Cpath d='M5.5 8l1 2.1 2.3.2-1.7 1.6.5 2.2-2.1-1.2-2 1.2.5-2.2L2.2 10.3l2.3-.2z' fill='%23ffffff'/%3E%3Cpath d='M18 11l.7 1.5 1.6.2-1.2 1.1.3 1.6-1.4-.8-1.5.8.4-1.6-1.2-1.1 1.6-.2z' fill='%238fb4ff'/%3E%3C/svg%3E"); right: -11px; }
:root[data-theme="pascha"] .brand-badge { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M8 1C4.2 1 1.5 7 1.5 12a6.5 6.5 0 0 0 13 0C14.5 7 11.8 1 8 1z' fill='%23c8102e' stroke='%237a0a1c' stroke-width='.8'/%3E%3Cpath d='M2 11.5c2 1.3 4 1.3 6 0s4-1.3 6 0' fill='none' stroke='%23e7b04a' stroke-width='1.3'/%3E%3Cpath d='M5.3 6.5h5.4' stroke='%23e7b04a' stroke-width='1'/%3E%3Cellipse cx='5.6' cy='7.5' rx='1.2' ry='2' fill='%23ffffff' opacity='.35'/%3E%3C/svg%3E"); right: -9px; width: 16px; height: 20px; }

:root[data-theme="pascha"] .season-hero[data-season="pascha"],
:root[data-theme="july4"] .season-hero[data-season="july4"],
:root[data-theme="halloween"] .season-hero[data-season="halloween"],
:root[data-theme="christmas"] .season-hero[data-season="christmas"] {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 40px 0 36px;
}
.season-hero-text { flex: 1 1 420px; display: grid; gap: 12px; max-width: 640px; }
.season-hero-title { font-size: clamp(1.875rem, 1.2rem + 2vw, 2.625rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.season-hero-title .accent { color: var(--accent-text); }
.season-hero-lede { font-size: 1.0625rem; color: var(--text-muted); }
.season-hero-side { display: flex; align-items: flex-end; gap: 18px; }
.season-decor { display: flex; align-items: flex-start; gap: 14px; align-self: flex-start; margin-top: -68px; }
[data-season="july4"] .season-decor { align-items: center; align-self: center; gap: 2px; margin-top: -40px; }
[data-season="pascha"] .season-decor { align-items: flex-end; align-self: flex-end; gap: 10px; margin-top: 0; }
.season-countdown {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 150px; padding: 16px 22px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow);
}
.season-days { font: 700 54px/1 var(--font-mono); color: var(--countdown, var(--accent-text)); }
.season-days-label { font: 700 11px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 640px) { .season-decor { display: none; } }

.sway { transform-origin: top center; animation: sway 5s ease-in-out infinite; }
.sway:nth-child(2) { animation-delay: -1.6s; }
.sway:nth-child(3) { animation-delay: -3.1s; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.burst { transform-box: fill-box; transform-origin: center; animation: burst 3.6s ease-out infinite; }
.burst:nth-child(4n+2) { animation-delay: 1.2s; }
.burst:nth-child(4n+3) { animation-delay: 2.4s; }
.burst:nth-child(4n+4) { animation-delay: 0.6s; }
@keyframes burst { 0% { transform: scale(0.2); opacity: 0; } 15% { opacity: 1; } 55% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.8s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(0.9, 1.07); } 50% { transform: scale(1.05, 0.94); } 75% { transform: scale(0.96, 1.04); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

:root[data-theme="pascha"] .season-add-icon, :root[data-theme="july4"] .season-add-icon, :root[data-theme="halloween"] .season-add-icon, :root[data-theme="christmas"] .season-add-icon { display: block; width: 20px; height: 20px; background: no-repeat center / contain; }
:root[data-theme="christmas"] .season-add-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23ffd166' stroke-width='1.7' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='18' height='12' rx='1.5'/%3E%3Cpath d='M12 9v12M2.5 9h19M12 9c-2-4-6-5-6-2s4 2 6 2zM12 9c2-4 6-5 6-2s-4 2-6 2z'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="halloween"] .season-add-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%231a0b00' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 7c-3-1.6-7.3-.6-8.6 2.8-1.4 3.8.6 9.6 5 10.4 1.3.2 2.5-.2 3.6-.8 1.1.6 2.3 1 3.6.8 4.4-.8 6.4-6.6 5-10.4C19.3 6.4 15 5.4 12 7z'/%3E%3Cpath d='M12 7V4.5c0-1 .9-1.8 2-1.8'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="july4"] .season-add-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z' fill='%23ffd166'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .season-add-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23ffe3a3' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 2.5C8 2.5 4.8 9 4.8 14a7.2 7.2 0 0 0 14.4 0C19.2 9 16 2.5 12 2.5z'/%3E%3Cpath d='M5.3 13.2c2.2 1.5 4.5 1.5 6.7 0s4.5-1.5 6.7 0'/%3E%3C/g%3E%3C/svg%3E"); }

/* Tick boxes take each season's shape; done tasks are struck through in the season's red or orange. */
:root[data-theme="pascha"] .task-box, :root[data-theme="july4"] .task-box, :root[data-theme="halloween"] .task-box { width: 28px; height: 28px; border: 0; border-radius: 0; background: no-repeat center / contain; }
:root[data-theme="pascha"] .task-box svg, :root[data-theme="july4"] .task-box svg, :root[data-theme="halloween"] .task-box svg { display: none; }
:root[data-theme="pascha"] .task.is-done .task-box, :root[data-theme="july4"] .task.is-done .task-box, :root[data-theme="halloween"] .task.is-done .task-box { background-color: transparent; }
:root[data-theme="halloween"] .task-box { width: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M15 5c.8-2.4 2.4-3.4 4-3' stroke='%237d6a96' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3Cpath d='M15 7.2c-3.6-2-9-1-10.9 3.1-2 4.6.5 11.4 5.6 12.6 1.8.4 3.6-.2 5.3-1 1.7.8 3.5 1.4 5.3 1 5.1-1.2 7.6-8 5.6-12.6C24 6.2 18.6 5.2 15 7.2z' fill='none' stroke='%23a78bfa' stroke-width='1.6'/%3E%3C/svg%3E"); }
:root[data-theme="halloween"] .task.is-done .task-box { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 28'%3E%3Cpath d='M15 5c.8-2.4 2.4-3.4 4-3' stroke='%235be38a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3Cpath d='M15 6.5c-3.8-2.2-9.6-1.2-11.6 3.3-2.2 5 .5 12.4 6.1 13.8 1.9.4 3.8-.2 5.5-1.1 1.7.9 3.6 1.5 5.5 1.1 5.6-1.4 8.3-8.8 6.1-13.8-2-4.5-7.8-5.5-11.6-3.3z' fill='%23ff7a1a'/%3E%3Cpath d='M9.5 14.5l3.8 3.8 7.2-7.6' fill='none' stroke='%231a0b00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="july4"] .task-box { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.4L12 17.4l-5.8 3 1.1-6.4-4.7-4.6 6.5-.9z' fill='none' stroke='%239aa6c4' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="july4"] .task.is-done .task-box { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.4 7 1-5.1 4.9 1.2 7L12 17.8l-6.2 3.3 1.2-7L1.9 9.2l7-1z' fill='%23ffd166'/%3E%3Cpath d='M8.3 12.4l2.6 2.6 4.8-5' fill='none' stroke='%230a1430' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .task-box { width: 26px; height: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'%3E%3Cpath d='M13 2.3C7.3 2.3 2.8 11.2 2.8 19a10.2 10.2 0 0 0 20.4 0C23.2 11.2 18.7 2.3 13 2.3z' fill='%23fffdf8' stroke='%23b08a3e' stroke-width='1.6'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .task.is-done .task-box { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'%3E%3Cpath d='M13 1.5C6.8 1.5 2 11 2 19a11 11 0 0 0 22 0C24 11 19.2 1.5 13 1.5z' fill='%23b30f2c'/%3E%3Cpath d='M3 18c3.3 2.2 6.7 2.2 10 0s6.7-2.2 10 0' stroke='%23e7b04a' stroke-width='1.4' fill='none' opacity='.8'/%3E%3Cpath d='M8 19.5l3.5 3.5 6.5-7.5' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .task.is-done .task-text, :root[data-theme="july4"] .task.is-done .task-text, :root[data-theme="halloween"] .task.is-done .task-text, :root[data-theme="christmas"] .task.is-done .task-text { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
:root[data-theme="july4"] .task.is-done .task-text { text-decoration-color: #ff4d5e; }

:root[data-theme="pascha"] .season-tip[data-season="pascha"],
:root[data-theme="july4"] .season-tip[data-season="july4"],
:root[data-theme="halloween"] .season-tip[data-season="halloween"],
:root[data-theme="christmas"] .season-tip[data-season="christmas"] { display: grid; gap: 6px; position: relative; font-size: 0.90625rem; line-height: 1.5; }
.season-tip-title { font: 700 11px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }

:root[data-theme="pascha"] .season-scene, :root[data-theme="july4"] .season-scene, :root[data-theme="halloween"] .season-scene, :root[data-theme="christmas"] .season-scene {
  display: flex; justify-content: space-between; align-items: flex-end; height: 200px; margin-top: 24px; padding: 0 4% 34px;
  background: no-repeat center bottom / 100% 140px;
}
.season-scene span { background: no-repeat center / contain; }
@media (max-width: 640px) { .season-scene span:nth-child(-n+2), .season-scene span:nth-child(n+8) { display: none; } }
:root[data-theme="pascha"] .site-footer, :root[data-theme="july4"] .site-footer, :root[data-theme="halloween"] .site-footer, :root[data-theme="christmas"] .site-footer { border-top: 0; padding-top: 24px; }

/* ---- Pascha -------------------------------------------------------------------------------- */

:root[data-theme="pascha"] body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 0, rgba(231, 176, 74, 0.22), transparent 70%);
}
:root[data-theme="pascha"] .season-garland i::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  border-bottom: 1.4px solid #c9a24a; border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
:root[data-theme="pascha"] .season-garland i::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 11px; height: 14px; margin-left: -5.5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  background: #c8102e; transform-origin: 50% -6px; animation: swing 4s ease-in-out infinite;
}
:root[data-theme="pascha"] .season-garland i:nth-child(3n+2)::after { background: #e0a83a; animation-delay: -1.3s; }
:root[data-theme="pascha"] .season-garland i:nth-child(3n+3)::after { background: #9b0d24; animation-delay: -2.6s; }
@keyframes swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
:root[data-theme="pascha"] .panel { box-shadow: 0 1px 2px rgba(42, 23, 18, 0.05), 0 18px 40px -24px rgba(42, 23, 18, 0.3); }
:root[data-theme="pascha"] .tasks-panel { position: relative; }
:root[data-theme="pascha"] .tasks-panel::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 12px; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 11H9V1H21V8H14V5H17M21 11H24' fill='none' stroke='%23c9a24a' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 12px;
}
:root[data-theme="pascha"] .tasks-head { padding-top: 34px; }
:root[data-theme="pascha"] .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:root[data-theme="pascha"] .season-countdown { box-shadow: 0 12px 28px -18px rgba(42, 23, 18, 0.35); }
:root[data-theme="pascha"] .season-tip[data-season="pascha"] {
  padding: 18px 20px; background: #ffffff; color: var(--text-muted); border: 1px solid var(--border); border-top: 4px solid #c8102e;
  border-radius: 16px; box-shadow: 0 14px 28px -20px rgba(42, 23, 18, 0.4);
}
[data-season="pascha"] .season-tip-title { color: var(--accent-text); }
:root[data-theme="pascha"] .season-scene { height: 190px; padding-bottom: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C240 40 480 60 720 85 C960 110 1200 60 1440 75 V140 H0 Z' fill='%23b9d98a' opacity='.5'/%3E%3Cpath d='M0 105 C260 80 520 100 760 110 C1000 120 1240 92 1440 100 V140 H0 Z' fill='%23eaf3dc'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .season-scene span { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50'%3E%3Cpath d='M20 2C10.5 2 3 17 3 30a17 17 0 0 0 34 0C37 17 29.5 2 20 2z' fill='%23c8102e'/%3E%3Cpath d='M4 27c5.3 3.4 10.7 3.4 16 0s10.7-3.4 16 0' stroke='%23e7b04a' stroke-width='2' fill='none'/%3E%3Cellipse cx='12.5' cy='16' rx='3.2' ry='6.5' fill='%23ffffff' opacity='.3'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .season-scene span:nth-child(1) { width: 34px; height: 42px; }
:root[data-theme="pascha"] .season-scene span:nth-child(2) { width: 28px; height: 46px; }
:root[data-theme="pascha"] .season-scene span:nth-child(3) { width: 26px; height: 33px; }
:root[data-theme="pascha"] .season-scene span:nth-child(4) { width: 38px; height: 48px; }
:root[data-theme="pascha"] .season-scene span:nth-child(5) { width: 96px; height: 90px; }
:root[data-theme="pascha"] .season-scene span:nth-child(6) { width: 30px; height: 38px; }
:root[data-theme="pascha"] .season-scene span:nth-child(7) { width: 28px; height: 46px; }
:root[data-theme="pascha"] .season-scene span:nth-child(8) { width: 36px; height: 45px; }
:root[data-theme="pascha"] .season-scene span:nth-child(9) { width: 26px; height: 33px; }
:root[data-theme="pascha"] .season-scene span:nth-child(2) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 50'%3E%3Cpath d='M15 50V22' stroke='%235f8f3a' stroke-width='2'/%3E%3Cpath d='M15 38c-6-1-9-5-9-9 5 0 8 4 9 9z' fill='%237aa84c'/%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='15' cy='9' rx='4' ry='7'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate%2872 15 16%29'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate%28144 15 16%29'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate%28216 15 16%29'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate%28288 15 16%29'/%3E%3C/g%3E%3Ccircle cx='15' cy='16' r='3.5' fill='%23e7b04a'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .season-scene span:nth-child(3) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50'%3E%3Cpath d='M20 2C10.5 2 3 17 3 30a17 17 0 0 0 34 0C37 17 29.5 2 20 2z' fill='%239b0d24'/%3E%3Cpath d='M4 27c5.3 3.4 10.7 3.4 16 0s10.7-3.4 16 0' stroke='%23e7b04a' stroke-width='2' fill='none'/%3E%3Cellipse cx='12.5' cy='16' rx='3.2' ry='6.5' fill='%23ffffff' opacity='.3'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .season-scene span:nth-child(5) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 90'%3E%3Cpath d='M16 46 C16 6 80 6 80 46' fill='none' stroke='%238a5a2b' stroke-width='4'/%3E%3Cellipse cx='33' cy='40' rx='10' ry='13' fill='%23c8102e'/%3E%3Cellipse cx='63' cy='40' rx='10' ry='13' fill='%239b0d24'/%3E%3Cellipse cx='48' cy='35' rx='10' ry='13' fill='%23e0a83a'/%3E%3Cellipse cx='44' cy='30' rx='2.5' ry='5' fill='%23ffffff' opacity='.35'/%3E%3Cpath d='M8 46 H88 L80 86 H16 Z' fill='%23b5793b'/%3E%3Cpath d='M12 58H84M14 70H82M24 46l4 40M40 46l2 40M56 46l-2 40M72 46l-4 40' stroke='%238a5a2b' stroke-width='1.6' opacity='.7'/%3E%3Cpath d='M8 46 H88' stroke='%238a5a2b' stroke-width='4'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .season-scene span:nth-child(6) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50'%3E%3Cpath d='M20 2C10.5 2 3 17 3 30a17 17 0 0 0 34 0C37 17 29.5 2 20 2z' fill='%23e0a83a'/%3E%3Cpath d='M4 27c5.3 3.4 10.7 3.4 16 0s10.7-3.4 16 0' stroke='%23e7b04a' stroke-width='2' fill='none'/%3E%3Cellipse cx='12.5' cy='16' rx='3.2' ry='6.5' fill='%23ffffff' opacity='.3'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .season-scene span:nth-child(7) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 50'%3E%3Cpath d='M15 50V22' stroke='%235f8f3a' stroke-width='2'/%3E%3Cpath d='M15 38c-6-1-9-5-9-9 5 0 8 4 9 9z' fill='%237aa84c'/%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='15' cy='9' rx='4' ry='7'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate%2872 15 16%29'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate%28144 15 16%29'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate%28216 15 16%29'/%3E%3Cellipse cx='15' cy='9' rx='4' ry='7' transform='rotate%28288 15 16%29'/%3E%3C/g%3E%3Ccircle cx='15' cy='16' r='3.5' fill='%23e7b04a'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .season-scene span:nth-child(9) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50'%3E%3Cpath d='M20 2C10.5 2 3 17 3 30a17 17 0 0 0 34 0C37 17 29.5 2 20 2z' fill='%239b0d24'/%3E%3Cpath d='M4 27c5.3 3.4 10.7 3.4 16 0s10.7-3.4 16 0' stroke='%23e7b04a' stroke-width='2' fill='none'/%3E%3Cellipse cx='12.5' cy='16' rx='3.2' ry='6.5' fill='%23ffffff' opacity='.3'/%3E%3C/svg%3E"); }
:root[data-theme="pascha"] .site-footer {
  --bg-raised: #eaf3dc; --text: #24301a; --text-muted: #3a4630; --text-faint: #4d5a42; --border: #c9dbb0;
  --accent-line: rgba(36, 48, 26, 0.35);
}

/* ---- 4th of July --------------------------------------------------------------------------- */

:root[data-theme="july4"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(1.6px 1.6px at 30px 50px, #fff, transparent 70%), radial-gradient(1.2px 1.2px at 150px 120px, #fff, transparent 70%), radial-gradient(2px 2px at 240px 30px, #fff, transparent 70%), radial-gradient(1.2px 1.2px at 90px 230px, #fff, transparent 70%), radial-gradient(1.6px 1.6px at 200px 200px, #fff, transparent 70%); background-size: 280px 280px; opacity: 0.4; animation: stars 5s ease-in-out infinite;
}
@keyframes stars { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.18; } }
:root[data-theme="july4"] .season-garland { height: 24px; margin-top: 0; }
:root[data-theme="july4"] .season-garland i { border-top: 2px solid rgba(196, 204, 226, 0.6); }
:root[data-theme="july4"] .season-garland i::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 2px; height: 18px;
  clip-path: polygon(0 0, 100% 0, 50% 100%); background: #c8102e;
}
:root[data-theme="july4"] .season-garland i:nth-child(3n+2)::after { background: #f4f6fb; }
:root[data-theme="july4"] .season-garland i:nth-child(3n+3)::after { background: #2f5fd0; }
:root[data-theme="july4"] .tasks-panel { position: relative; overflow: hidden; }
:root[data-theme="july4"] .tasks-panel::before {
  content: ""; display: block; height: 5px; background: repeating-linear-gradient(90deg, #c8102e 0 16px, #f4f6fb 16px 32px);
}
:root[data-theme="july4"] .season-tip[data-season="july4"] {
  padding: 24px 20px 18px; color: #1a2747; border-radius: 10px; transform: rotate(-1.5deg);
  background: linear-gradient(90deg, #c8102e 0 50%, #f4f6fb 50%) 0 0 / 32px 6px repeat-x, #f4f6fb;
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.7);
}
[data-season="july4"] .season-tip-title { color: #a30d26; }
:root[data-theme="july4"] .season-scene { height: 240px; align-items: center; padding-bottom: 100px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140V82H40V64H90V92H140V52H170V30H180V52H220V76H280V58H330V88H380V44H420V70H470V96H520V60H560V36H572V60H610V84H670V50H720V74H770V92H820V56H860V40H900V68H950V86H1000V48H1030V26H1040V48H1080V78H1130V62H1180V90H1230V54H1270V72H1320V94H1370V66H1440V140Z' fill='%23050b1d'/%3E%3C/svg%3E"); }
:root[data-theme="july4"] .season-scene span { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-42 -42 84 84'%3E%3Cg stroke='%23ff4d5e' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M0-14V-36M0 14V36M-14 0H-36M14 0H36M10-10L25-25M-10 10L-25 25M-10-10L-25-25M10 10L25 25'/%3E%3C/g%3E%3Ccircle r='4' fill='%23ffffff'/%3E%3C/svg%3E"); animation: burst 3.6s ease-out infinite; }
:root[data-theme="july4"] .season-scene span:nth-child(3n+2) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-42 -42 84 84'%3E%3Cg stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M0-14V-36M0 14V36M-14 0H-36M14 0H36M10-10L25-25M-10 10L-25 25M-10-10L-25-25M10 10L25 25'/%3E%3C/g%3E%3Ccircle r='4' fill='%23ffffff'/%3E%3C/svg%3E"); }
:root[data-theme="july4"] .season-scene span:nth-child(3n+3) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-42 -42 84 84'%3E%3Cg stroke='%236fa3ff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M0-14V-36M0 14V36M-14 0H-36M14 0H36M10-10L25-25M-10 10L-25 25M-10-10L-25-25M10 10L25 25'/%3E%3C/g%3E%3Ccircle r='4' fill='%23ffffff'/%3E%3C/svg%3E"); }
:root[data-theme="july4"] .season-scene span:nth-child(4n+2) { animation-delay: 1.2s; }
:root[data-theme="july4"] .season-scene span:nth-child(4n+3) { animation-delay: 2.4s; }
:root[data-theme="july4"] .season-scene span:nth-child(4n+4) { animation-delay: 0.6s; }
:root[data-theme="july4"] .season-scene span:nth-child(1) { width: 60px; height: 60px; }
:root[data-theme="july4"] .season-scene span:nth-child(2) { width: 46px; height: 46px; }
:root[data-theme="july4"] .season-scene span:nth-child(3) { width: 72px; height: 72px; }
:root[data-theme="july4"] .season-scene span:nth-child(4) { width: 52px; height: 52px; }
:root[data-theme="july4"] .season-scene span:nth-child(5) { width: 110px; height: 110px; }
:root[data-theme="july4"] .season-scene span:nth-child(6) { width: 56px; height: 56px; }
:root[data-theme="july4"] .season-scene span:nth-child(7) { width: 44px; height: 44px; }
:root[data-theme="july4"] .season-scene span:nth-child(8) { width: 66px; height: 66px; }
:root[data-theme="july4"] .season-scene span:nth-child(9) { width: 50px; height: 50px; }
:root[data-theme="july4"] .season-scene span:nth-child(1) { margin-top: 20px; }
:root[data-theme="july4"] .season-scene span:nth-child(2) { margin-top: -40px; }
:root[data-theme="july4"] .season-scene span:nth-child(3) { margin-top: 30px; }
:root[data-theme="july4"] .season-scene span:nth-child(4) { margin-top: -20px; }
:root[data-theme="july4"] .season-scene span:nth-child(5) { margin-top: -30px; }
:root[data-theme="july4"] .season-scene span:nth-child(6) { margin-top: 10px; }
:root[data-theme="july4"] .season-scene span:nth-child(7) { margin-top: -50px; }
:root[data-theme="july4"] .season-scene span:nth-child(8) { margin-top: 30px; }
:root[data-theme="july4"] .season-scene span:nth-child(9) { margin-top: -10px; }
:root[data-theme="july4"] .site-footer { --bg-raised: #050b1d; --border: #22365f; }

/* ---- Halloween ----------------------------------------------------------------------------- */

:root[data-theme="halloween"] body::before {
  content: ""; position: absolute; top: 96px; right: 2%; width: 130px; height: 130px; z-index: -1; pointer-events: none;
  border-radius: 50%; opacity: 0.5; box-shadow: 0 0 80px 24px rgba(243, 217, 139, 0.16);
  background: radial-gradient(circle at 38% 36%, #fff7d6, #f3d98b 58%, #d4ad55);
}
:root[data-theme="halloween"] body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(transparent, rgba(139, 92, 246, 0.1));
}
:root[data-theme="halloween"] .season-garland i::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  border-bottom: 1.6px solid #3a2c4d; border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
:root[data-theme="halloween"] .season-garland i::after {
  content: ""; position: absolute; left: 50%; top: 11px; width: 12px; height: 11px; margin-left: -6px; border-radius: 50%;
  background: #ff7a1a; box-shadow: 0 0 12px 3px rgba(255, 122, 26, 0.6); animation: twinkle 2.2s ease-in-out infinite;
}
:root[data-theme="halloween"] .season-garland i:nth-child(3n+2)::after { background: #a78bfa; box-shadow: 0 0 12px 3px rgba(167, 139, 250, 0.6); animation-delay: 0.7s; }
:root[data-theme="halloween"] .season-garland i:nth-child(3n+3)::after { background: #7cff5b; box-shadow: 0 0 12px 3px rgba(124, 255, 91, 0.5); animation-delay: 1.4s; }
:root[data-theme="halloween"] .tasks-panel { position: relative; }
:root[data-theme="halloween"] .tasks-panel::before {
  content: ""; position: absolute; top: 0; right: 0; width: 80px; height: 80px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23cdc1d9' stroke-width='.8' opacity='.55'%3E%3Cpath d='M80 0L0 80M80 0L28 80M80 0L0 30M80 0L56 80M80 0L0 56'/%3E%3Cpath d='M80 18C72 20 64 20 62 18 60 14 62 6 62 0'/%3E%3Cpath d='M80 38C66 42 50 42 44 36 38 30 40 14 42 0'/%3E%3Cpath d='M80 60C60 64 34 62 26 54 18 46 18 22 22 0'/%3E%3C/g%3E%3C/svg%3E") no-repeat; border-top-right-radius: var(--radius);
}
:root[data-theme="halloween"] .tasks-actions { margin-right: 56px; }
:root[data-theme="halloween"] .season-tip[data-season="halloween"] {
  padding: 18px 20px; background: #1f1530; color: var(--text-muted); border: 1px dashed #ff7a1a; border-radius: 12px;
  transform: rotate(1.5deg);
}
[data-season="halloween"] .season-tip-title { color: var(--accent-text); }
:root[data-theme="halloween"] .season-scene { height: 190px; padding-bottom: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C200 30 400 50 600 75 C800 100 1000 40 1200 55 C1320 64 1400 80 1440 72 V140 H0 Z' fill='%232a1d3d'/%3E%3Cpath d='M0 100 C240 80 480 96 720 106 C960 116 1200 88 1440 98 V140 H0 Z' fill='%231f1530'/%3E%3C/svg%3E"); }
:root[data-theme="halloween"] .season-scene span { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cpath d='M20 7c1-3 3-4.4 5.2-3.8' stroke='%235be38a' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M20 8c-5-3-13-1.6-15.5 4.4C1.6 19.3 5 30 12.6 32c2.5.6 5-.2 7.4-1.4 2.4 1.2 4.9 2 7.4 1.4C35 30 38.4 19.3 35.5 12.4 33 6.4 25 5 20 8z' fill='%23ff7a1a'/%3E%3Cpath d='M20 8.5V31M12.5 9.5c-3 4.5-3 16 .5 21.5M27.5 9.5c3 4.5 3 16-.5 21.5' stroke='%23c4560a' stroke-width='1.3' fill='none'/%3E%3C/svg%3E"); }
:root[data-theme="halloween"] .season-scene span:nth-child(1) { width: 40px; height: 34px; }
:root[data-theme="halloween"] .season-scene span:nth-child(2) { width: 30px; height: 40px; }
:root[data-theme="halloween"] .season-scene span:nth-child(3) { width: 30px; height: 26px; }
:root[data-theme="halloween"] .season-scene span:nth-child(4) { width: 44px; height: 37px; }
:root[data-theme="halloween"] .season-scene span:nth-child(5) { width: 100px; height: 85px; }
:root[data-theme="halloween"] .season-scene span:nth-child(6) { width: 30px; height: 40px; }
:root[data-theme="halloween"] .season-scene span:nth-child(7) { width: 36px; height: 31px; }
:root[data-theme="halloween"] .season-scene span:nth-child(8) { width: 30px; height: 26px; }
:root[data-theme="halloween"] .season-scene span:nth-child(9) { width: 42px; height: 36px; }
:root[data-theme="halloween"] .season-scene span:nth-child(2) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M3 40V14a12 12 0 0 1 24 0v26z' fill='%234a3568'/%3E%3Cpath d='M3 40V14a12 12 0 0 1 24 0' fill='none' stroke='%235d4580' stroke-width='1.5'/%3E%3Cpath d='M9 17h12M15 11v14' stroke='%232a1d3d' stroke-width='2.4'/%3E%3C/svg%3E"); }
:root[data-theme="halloween"] .season-scene span:nth-child(5) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cpath d='M20 7c1-3 3-4.4 5.2-3.8' stroke='%235be38a' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M20 8c-5-3-13-1.6-15.5 4.4C1.6 19.3 5 30 12.6 32c2.5.6 5-.2 7.4-1.4 2.4 1.2 4.9 2 7.4 1.4C35 30 38.4 19.3 35.5 12.4 33 6.4 25 5 20 8z' fill='%23ff7a1a'/%3E%3Cpath d='M20 8.5V31M12.5 9.5c-3 4.5-3 16 .5 21.5M27.5 9.5c3 4.5 3 16-.5 21.5' stroke='%23c4560a' stroke-width='1.3' fill='none' opacity='.6'/%3E%3Cpath d='M10.5 15.5l5-2.5 1 4.6zM29.5 15.5l-5-2.5-1 4.6zM11 21.5c3 3.4 5.6 1.4 9 3.2 3.4-1.8 6-.2 9-3.2-2.6 6-15.4 6-18 0z' fill='%23ffd166'/%3E%3C/svg%3E"); }
:root[data-theme="halloween"] .season-scene span:nth-child(6) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M3 40V14a12 12 0 0 1 24 0v26z' fill='%234a3568'/%3E%3Cpath d='M3 40V14a12 12 0 0 1 24 0' fill='none' stroke='%235d4580' stroke-width='1.5'/%3E%3Cpath d='M9 17h12M15 11v14' stroke='%232a1d3d' stroke-width='2.4'/%3E%3C/svg%3E"); }
:root[data-theme="halloween"] .season-scene span:nth-child(5) { filter: drop-shadow(0 0 18px rgba(255, 154, 60, 0.45)); }
:root[data-theme="halloween"] .site-footer { --bg-raised: #1f1530; --border: #33244a; }

/* ---- Christmas ----------------------------------------------------------------------------- */

/* Falling snow behind the content: two layers at different speeds. */
:root[data-theme="christmas"] body::before,
:root[data-theme="christmas"] body::after {
  content: ""; position: fixed; inset: -260px 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(2px 2px at 20px 40px, rgba(255, 255, 255, 0.85), transparent 70%), radial-gradient(1.5px 1.5px at 130px 90px, rgba(255, 255, 255, 0.7), transparent 70%), radial-gradient(2.5px 2.5px at 210px 170px, rgba(255, 255, 255, 0.8), transparent 70%), radial-gradient(1.5px 1.5px at 70px 210px, rgba(255, 255, 255, 0.6), transparent 70%);
  background-size: 260px 260px; opacity: 0.5; animation: snow 22s linear infinite;
}
:root[data-theme="christmas"] body::after { background-size: 180px 180px; opacity: 0.3; animation-duration: 34s; }
@keyframes snow { from { background-position: 0 0; } to { background-position: 40px 260px; } }

:root[data-theme="christmas"] .season-garland i::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  border-bottom: 1.6px solid #3b4a41; border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
:root[data-theme="christmas"] .season-garland i::after {
  content: ""; position: absolute; left: 50%; top: 11px; width: 10px; height: 15px; margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: #ff4d5e; box-shadow: 0 0 12px 3px rgba(255, 77, 94, 0.65); animation: twinkle 2.6s ease-in-out infinite;
}
:root[data-theme="christmas"] .season-garland i:nth-child(4n+2)::after { background: #ffd166; box-shadow: 0 0 12px 3px rgba(255, 209, 102, 0.65); animation-delay: 0.7s; }
:root[data-theme="christmas"] .season-garland i:nth-child(4n+3)::after { background: #5be38a; box-shadow: 0 0 12px 3px rgba(91, 227, 138, 0.6); animation-delay: 1.3s; }
:root[data-theme="christmas"] .season-garland i:nth-child(4n+4)::after { background: #5ec8ff; box-shadow: 0 0 12px 3px rgba(94, 200, 255, 0.6); animation-delay: 1.9s; }

/* Snow resting on the panels. */
:root[data-theme="christmas"] .panel, :root[data-theme="christmas"] .info-card { position: relative; }
:root[data-theme="christmas"] .panel::before, :root[data-theme="christmas"] .info-card::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -10px; height: 22px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 10 C50 0 100 3 150 6 C200 0 260 2 320 5 C350 1 380 2 400 8 L400 13 C390 13 388 20 382 20 C376 20 374 13 366 13 L230 13 C222 13 220 18 215 18 C210 18 208 13 200 13 L80 13 C72 13 70 21 64 21 C58 21 56 13 48 13 L0 14 Z' fill='%23f4f8f5'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
:root[data-theme="christmas"] .lists-panel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 10 C30 0 60 2 90 6 C120 0 160 1 190 5 C230 -1 270 2 300 6 C330 0 370 1 400 7 L400 13 C392 13 389 19 384 19 C379 19 376 13 368 13 L290 13 C283 13 281 21 275 21 C269 21 267 13 260 13 L170 13 C162 13 160 17 155 17 C150 17 148 13 140 13 L70 13 C62 13 60 22 54 22 C48 22 46 13 40 13 L0 14 Z' fill='%23f4f8f5'/%3E%3C/svg%3E"); }
:root[data-theme="christmas"] .tasks-panel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 9 C40 0 80 3 120 6 C160 -1 200 2 240 5 C280 0 330 1 400 8 L400 13 C390 13 388 18 383 18 C378 18 376 13 368 13 L300 13 C292 13 290 23 284 23 C278 23 276 13 268 13 L200 13 C192 13 190 18 185 18 C180 18 178 13 170 13 L90 13 C82 13 80 21 74 21 C68 21 66 13 58 13 L0 14 Z' fill='%23f4f8f5'/%3E%3C/svg%3E"); }
:root[data-theme="christmas"] .lists-panel { padding-top: 22px; }
:root[data-theme="christmas"] .tasks-head { padding-top: 28px; }
:root[data-theme="christmas"] .list-button[aria-current="true"] { background: #1b3a2a; }

/* Tick boxes become baubles. */
:root[data-theme="christmas"] .task-box { position: relative; width: 24px; height: 24px; margin-top: 6px; border: 1.6px solid var(--accent-text); border-radius: 50%; }
:root[data-theme="christmas"] .task-box::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 7px; height: 5px; margin-left: -3.5px;
  border-radius: 1.5px; background: var(--accent-text);
}
:root[data-theme="christmas"] .task-check:hover .task-box { border-color: #ffe08a; }
:root[data-theme="christmas"] .task.is-done .task-box { background: var(--accent); border-color: var(--accent-text); }

/* Gift-tag tip. */
:root[data-theme="christmas"] .season-tip[data-season="christmas"] {
  margin-left: 18px; padding: 18px 18px 18px 34px; background: #f6efe0; color: #3a2a12;
  border-radius: 4px 14px 14px 4px; transform: rotate(-2deg); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.7);
}
:root[data-theme="christmas"] .season-tip[data-season="christmas"]::before {
  content: ""; position: absolute; left: -18px; top: 50%; margin-top: -26px;
  border-top: 26px solid transparent; border-bottom: 26px solid transparent; border-right: 18px solid #f6efe0;
}
:root[data-theme="christmas"] .season-tip[data-season="christmas"]::after {
  content: ""; position: absolute; left: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px #c9a24a;
}
[data-season="christmas"] .season-tip-title { color: #a11d2f; }

/* Snowy hills and trees above a snow-white footer. */
:root[data-theme="christmas"] .season-scene { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C200 20 380 40 560 70 C760 105 960 30 1180 50 C1300 60 1380 80 1440 70 V140 H0 Z' fill='%23cfdcd5' opacity='.18'/%3E%3Cpath d='M0 100 C240 70 460 90 720 105 C980 120 1200 80 1440 95 V140 H0 Z' fill='%23eef4f0'/%3E%3C/svg%3E"); }
:root[data-theme="christmas"] .season-scene span { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 64'%3E%3Cpath d='M20 2L9 22h6L4 40h7L1 58h38L29 40h7L25 22h6z' fill='%23174f34'/%3E%3Cpath d='M20 2l-5 9 2.5-.8 2.5 2 2.5-2 2.5.8zM15 22l-4 6 3-.6 2 1.6 2-2 2 2 2-2 2 2 2-1.6 3 .6-4-6z' fill='%23f4f8f5'/%3E%3Crect x='17' y='58' width='6' height='6' fill='%234a3220'/%3E%3C/svg%3E"); }
:root[data-theme="christmas"] .season-scene span:nth-child(1) { width: 34px; height: 54px; }
:root[data-theme="christmas"] .season-scene span:nth-child(2) { width: 46px; height: 74px; }
:root[data-theme="christmas"] .season-scene span:nth-child(3) { width: 30px; height: 48px; }
:root[data-theme="christmas"] .season-scene span:nth-child(4) { width: 52px; height: 84px; }
:root[data-theme="christmas"] .season-scene span:nth-child(5) { width: 96px; height: 150px; }
:root[data-theme="christmas"] .season-scene span:nth-child(6) { width: 40px; height: 64px; }
:root[data-theme="christmas"] .season-scene span:nth-child(7) { width: 28px; height: 45px; }
:root[data-theme="christmas"] .season-scene span:nth-child(8) { width: 48px; height: 77px; }
:root[data-theme="christmas"] .season-scene span:nth-child(9) { width: 36px; height: 58px; }
:root[data-theme="christmas"] .season-scene span:nth-child(5) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 94'%3E%3Cpath d='M30 2l3 6 6.5.7-4.9 4.3 1.4 6.4L30 16l-6 3.4 1.4-6.4-4.9-4.3 6.5-.7z' fill='%23f2c14e'/%3E%3Cpath d='M30 18L14 44h8L8 66h10L2 86h56L42 66h10L38 44h8z' fill='%231f6b45'/%3E%3Cpath d='M30 18l-6 10 3-1 3 3 3-3 3 1zM22 44l-6 8 4-1 3 2 2-3 3 2 2-3 3 2 3-2 3 3 2-2 4 1-6-8z' fill='%23f4f8f5'/%3E%3Ccircle cx='24' cy='58' r='2.6' fill='%23ff4d5e'/%3E%3Ccircle cx='37' cy='52' r='2.4' fill='%23ffd166'/%3E%3Ccircle cx='20' cy='76' r='2.6' fill='%235ec8ff'/%3E%3Ccircle cx='40' cy='74' r='2.8' fill='%23ff4d5e'/%3E%3Ccircle cx='31' cy='68' r='2.2' fill='%235be38a'/%3E%3Crect x='26' y='86' width='8' height='8' fill='%235a3b22'/%3E%3C/svg%3E"); }
:root[data-theme="christmas"] .site-footer {
  --bg-raised: #eef4f0; --text: #1d2b23; --text-muted: #34443a; --text-faint: #4d5c53; --border: #cfdcd5;
  --accent-text: #7a4f00; --accent-line: rgba(29, 43, 35, 0.35);
}

@media print {
  .season-hero, .season-garland, .season-scene, .season-tip { display: none !important; }
  :root[data-theme] body::before, :root[data-theme] body::after, .panel::before { display: none !important; }
}
