/* December look (js/xmas.js). Only active while <html> has .dd-xmas. */

/* Santa hat: the big home pup and the pups placed on the board. */
.dd-xmas .hub-hero-wrap { overflow: visible; }
/* The head tilts with the hat on: the idle tilt moves from the head images to the whole pup (same 160px box, same centre). */
.dd-xmas .hub-hero-wrap .hub-hero-img { animation: none; }
.dd-xmas .hub-hero-wrap { animation: corgi-idle 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .dd-xmas .hub-hero-wrap { animation: none; } }
.dd-xmas-hat { position: absolute; pointer-events: none; z-index: 3; left: 18%; top: -4%; width: 69%; height: auto; }
.dd-xmas .cell .cell-corgi, .dd-xmas .cell-corgi { overflow: visible; }
.cell-corgi .dd-cell-hat { position: absolute; display: block; pointer-events: none; z-index: 2; left: 6%; top: -16%; width: 98%; height: auto; }
/* The board pup's pupils move every frame; on their own layer they don't make the phone redraw the hat above them. */
.dd-xmas .cell-corgi .corgi-part[data-part$="pupil"] { will-change: transform; }

/* Twinkling lights draped over the top edge of the home card and the board. */
.dd-xmas-lights .hub-body, .dd-xmas-lights #board-container { position: relative; }
.dd-lights { position: absolute; left: 0; right: 0; top: -9px; height: 0; pointer-events: none; z-index: 5; }
.dd-lights-wire { position: absolute; left: 0; top: 0; overflow: visible; }
.dd-lights-wire path { fill: none; stroke: #2F5A32; stroke-width: 2.5; stroke-linecap: round; }
html.dd-dark .dd-lights-wire path { stroke: #4E7D50; }
.dd-bulb { position: absolute; width: 14px; height: 25px; margin-left: -7px; margin-top: -3px; }
.dd-bulb img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dd-bulb .dd-on { animation: ddTwinkle var(--d, 2s) ease-in-out var(--dl, 0s) infinite; }
.dd-glow { position: absolute; left: 50%; top: 62%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  opacity: 0.55; animation: ddTwinkle var(--d, 2s) ease-in-out var(--dl, 0s) infinite; }
.dd-bulb-red .dd-glow { background: radial-gradient(circle, rgba(255,70,60,0.75) 0%, rgba(255,70,60,0) 65%); }
.dd-bulb-gold .dd-glow { background: radial-gradient(circle, rgba(255,200,60,0.75) 0%, rgba(255,200,60,0) 65%); }
.dd-bulb-green .dd-glow { background: radial-gradient(circle, rgba(70,220,110,0.7) 0%, rgba(70,220,110,0) 65%); }
.dd-bulb-blue .dd-glow { background: radial-gradient(circle, rgba(80,160,255,0.75) 0%, rgba(80,160,255,0) 65%); }
/* In dark mode the glow is bigger and brighter. */
html.dd-dark .dd-glow { width: 52px; height: 52px; margin: -26px 0 0 -26px; opacity: 0.9; }
@keyframes ddTwinkle { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 60% { opacity: 0.15; } 75% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dd-bulb .dd-on, .dd-glow { animation: none; } }
