/* Winter, November to February (see app/lib/season.js and
   app/components/snow.js): a light snowfall, the badge on Home and the winter
   card. Any theme can have it. */

/* ---- Snow -------------------------------------------------------------------------- */
/* A light fall: few flakes, small and faint, transform only, so it rides the
   compositor and never touches layout. Gone for anyone who asks for less motion. */
.snow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.snow i { position: absolute; top: -12px; border-radius: 50%; background: #fff; animation-name: snowfall; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; }
[data-tone="light"] .snow i { background: #9db7d6; }
@keyframes snowfall { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--drift, 0), calc(100vh + 24px), 0); } }

.winter-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #d6ecff; background: rgba(76, 157, 255, .18); border: 1px solid rgba(140, 195, 255, .3); }
[data-tone="light"] .winter-badge { color: #1d4f8f; background: rgba(37, 99, 235, .08); border-color: rgba(37, 99, 235, .2); }

/* The aurora in the winter scene drifts, slowly. */
.art-aurora { animation: aurora 14s ease-in-out infinite alternate; transform-origin: center; }
@keyframes aurora { from { opacity: .75; transform: translateX(-12px); } to { opacity: 1; transform: translateX(12px); } }

.month-cell.newyear .day-num::after { content: " ✨"; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .snow { display: none; }
  .art-aurora { animation: none; }
}
@media print { .snow { display: none; } }

/* ---- Christmas (the Holly theme, and the Christmas eve scene) ---------------------------- */
.dash > .garland { position: absolute; left: 0; right: 0; top: -2px; width: 100%; height: 34px; z-index: 1; pointer-events: none; }
.art-bulb { animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.garland .art-bulb { filter: drop-shadow(0 0 4px currentColor); }
.art-star { filter: drop-shadow(0 0 6px rgba(255, 209, 102, .9)); }
[data-theme="holly"] .home-hero-text { padding-top: 44px; }
@media (prefers-reduced-motion: reduce) { .art-bulb { animation: none; } }
[data-theme="holly"] .link-btn { color: var(--accent-2); }
