/* Christmas dressing: top lights, seasonal chip and falling snow canvas. */

body.festive,
body.festive * {
  cursor: url("/assets/tree-cursor.svg?v=20261202c") 8 8, auto;
}

body.festive input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.festive textarea,
body.festive [contenteditable="true"] {
  cursor: text;
}

body.festive::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 13px;
  z-index: 1501;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 5px 5px, #ffe6a6 0 1.7px, rgba(255, 202, 92, 0.38) 2.5px, transparent 3.2px),
    radial-gradient(circle at 5px 5px, #ff7b79 0 1.7px, rgba(255, 107, 107, 0.34) 2.5px, transparent 3.2px),
    radial-gradient(circle at 5px 5px, #64dd9a 0 1.7px, rgba(94, 224, 138, 0.3) 2.5px, transparent 3.2px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  background-size: 48px 13px, 48px 13px, 48px 13px, 100% 1px;
  background-position: 0 0, 16px 0, 31px 0, 0 6px;
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 205, 110, 0.22));
}

body.festive .topbar {
  border-bottom-color: rgba(255, 189, 125, 0.16);
}

body.festive .topbar-actions::before {
  content: "❄  MERRY CHRISTMAS";
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  margin-right: 2px;
  border: 1px solid rgba(255, 205, 132, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 106, 106, 0.12), rgba(61, 170, 103, 0.12));
  color: #ffe0ac;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 206, 118, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.snow-canvas {
  position: fixed;
  inset: 0;
  z-index: 1500;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.festive .brand-logo {
  filter:
    drop-shadow(0 0 10px rgba(47, 155, 255, 0.28))
    drop-shadow(0 0 16px rgba(255, 213, 128, 0.08));
}

@media (max-width: 1100px) {
  body.festive .topbar-actions::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snow-canvas {
    display: none;
  }
}
