/* meowfee — holiday themes (app/seasons.js sets html[data-season]).
   Only the two accent colours change, so every theme, look and dark mode keeps working;
   plus a thin festive ribbon under the top bar and decorations that drift down once. */

:root[data-season]:not(.x) { --season-a: var(--me); --season-b: var(--you); }
:root[data-season="christmas"]:not(.x)   { --me: #d2475c; --you: #3f9d6a; }
:root[data-season="newyear"]:not(.x)     { --me: #c9971c; --you: #5866d6; }
:root[data-season="cny"]:not(.x)         { --me: #d63c3c; --you: #e2ad2f; }
:root[data-season="valentine"]:not(.x)   { --me: #e64f80; --you: #f19bb7; }
:root[data-season="ramadan"]:not(.x)     { --me: #2f8f83; --you: #d2ad45; }
:root[data-season="raya"]:not(.x)        { --me: #2e9a5a; --you: #d1a43a; }
:root[data-season="easter"]:not(.x)      { --me: #9b7fdc; --you: #eec34a; }
:root[data-season="vesak"]:not(.x)       { --me: #e29b36; --you: #c487cf; }
:root[data-season="haji"]:not(.x)        { --me: #3a8c6c; --you: #c6a258; }
:root[data-season="merdeka"]:not(.x)     { --me: #d33a3a; --you: #2d55b6; }
:root[data-season="sgday"]:not(.x)       { --me: #e0393e; --you: #9aa3ad; }
:root[data-season="idday"]:not(.x)       { --me: #db3a3e; --you: #a8adb3; }
:root[data-season="midautumn"]:not(.x)   { --me: #e2963a; --you: #6b5bb5; }
:root[data-season="halloween"]:not(.x)   { --me: #ee7a22; --you: #7c4bb8; }
:root[data-season="deepavali"]:not(.x)   { --me: #e6702a; --you: #c22f7a; }
:root[data-season="birthday"]:not(.x)    { --me: #ec6aa0; --you: #f5ae45; }
:root[data-season="anniversary"]:not(.x) { --me: #e5517f; --you: #c9971c; }

/* a festive ribbon along the bottom of the top bar */
:root[data-season] .topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--me) 0 14px, var(--you) 14px 28px);
  opacity: .85;
}
:root[data-season="christmas"] .topbar::after, :root[data-season="cny"] .topbar::after,
:root[data-season="deepavali"] .topbar::after, :root[data-season="raya"] .topbar::after {
  background: repeating-linear-gradient(90deg, var(--me) 0 10px, #f6d36b 10px 14px, var(--you) 14px 24px, #f6d36b 24px 28px);
}

/* decorations drifting down (once, ~15 s); never catch a tap */
#season-fx { position: fixed; inset: 0; pointer-events: none; z-index: 9000; overflow: hidden; }
#season-fx span {
  position: absolute; top: -8vh; line-height: 1; opacity: 0; will-change: transform, opacity;
  animation: season-fall linear 1 forwards; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .12));
}
@keyframes season-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .9; }
  85%  { opacity: .85; }
  100% { transform: translate3d(var(--drift, 0px), 112vh, 0) rotate(260deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { #season-fx { display: none; } }
:root[data-motion="reduce"] #season-fx { display: none; }

/* Settings → Appearance → Holiday themes */
.season-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.season-pick .chip { gap: 6px; }
.season-now { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-ctl);
  background: color-mix(in oklab, var(--me) 12%, var(--card)); margin: 6px 0 10px; }
.season-now .em { font-size: 1.6rem; }
