/* Winter / Christmas look (Nov 2026 – Jan 2027): a colder night sky, still
   snow, fairy lights under the header, snow on the cards' tops and pictures
   on winning tiles. Nothing here moves (Santa's fly-past is santa.js).
   Drop the <link> to it (and WINTER in app.js) to go back. */
:root {
  --bg: #090d16;
  --surface: #10151f;
  --surface-2: #161c28;
  --raised: #1d2432;
  --line: #222a39;
  --line-strong: #2d3648;
  --snow: #e9eef8;
}

/* Still snowflakes over the night sky, three sizes at different spacings. */
body {
  background:
    radial-gradient(circle at 20% 30%, rgb(233 238 248 / 0.22) 1px, transparent 1.6px) 0 0 / 97px 89px,
    radial-gradient(circle at 70% 60%, rgb(233 238 248 / 0.14) 1.2px, transparent 2px) 0 0 / 151px 137px,
    radial-gradient(circle at 40% 80%, rgb(233 238 248 / 0.1) 1.8px, transparent 2.6px) 0 0 / 233px 211px,
    linear-gradient(#0d1424, var(--bg) 480px) no-repeat,
    var(--bg);
  background-attachment: fixed;
}

/* A string of fairy lights under the header, sagging between pins
   (xmas/lights.svg: two spans of different widths, so it doesn't look
   stamped out). */
body > header { position: relative; padding-bottom: 30px; }
body > header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: url(xmas/lights.svg) -20px 0 / 240px 30px repeat-x;
  pointer-events: none;
}

/* Snow settled on the cards. */
.quick, #totals, .groups, .lb, .board, .haiku-card { position: relative; }
.quick::before, #totals::before, .groups::before, .lb::before, .board::before, .haiku-card::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -4px;
  height: 7px;
  border-radius: 4px 4px 0 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, var(--snow) 70%, transparent 72%) 0 0 / 41px 7px repeat-x,
    radial-gradient(ellipse 60% 100% at 50% 100%, var(--snow) 70%, transparent 72%) 19px 2px / 29px 5px repeat-x,
    linear-gradient(transparent 4px, var(--snow) 4px);
  opacity: 0.85;
  pointer-events: none;
}

/* A winning tile gets a little picture behind its score (snowflakes, a
   tree, holly, a bauble or a present; app.js picks one per game and day). */
.cell.won[data-xmas] { position: relative; isolation: isolate; }
.cell.won[data-xmas]::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: no-repeat;
  background-size: contain;
  opacity: 0.9;
}
.cell.won[data-xmas="snow"]::after { inset: 0; background-image: url(xmas/snow.svg); background-size: 96px 44px; background-repeat: repeat; background-position: center; opacity: 0.45; }
.cell.won[data-xmas="tree"]::after { right: 5px; bottom: 3px; width: 22px; height: 29px; background-image: url(xmas/tree.svg); }
.cell.won[data-xmas="holly"]::after { left: 3px; top: 3px; width: 31px; height: 19px; background-image: url(xmas/holly.svg); }
.cell.won[data-xmas="bauble"]::after { right: 4px; top: 0; width: 11px; height: 20px; background-image: url(xmas/bauble.svg); }
.cell.won[data-xmas="present"]::after { left: 5px; bottom: 3px; width: 23px; height: 21px; background-image: url(xmas/present.svg); }

/* Santa's fly-past behind the date and progress (santa.js). */
.daybar { position: relative; }
.daybar > * { position: relative; z-index: 1; }
.daybar > .santa-sky { position: absolute; z-index: 0; }
