/* Clayelej — Christmas mode. Loaded only while the mode is switched on.
   Overlay styles ported from the Lovable project (styles.css, .christmas-*). */
:root {
  --snow: oklch(0.99 0.004 90);
  --snow-edge: oklch(0.68 0.018 140 / 0.45);
  --santa-red: oklch(0.49 0.16 28);
  --santa-gold: oklch(0.77 0.1 82);
  --santa-deer: oklch(0.44 0.07 53);
  --santa-deer-light: oklch(0.7 0.055 70);
  --santa-skin: oklch(0.82 0.06 55);
}
.christmas-overlay { position: fixed; inset: 0; z-index: 9990; pointer-events: none; overflow: hidden; }
.christmas-snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.christmas-sleigh { position: absolute; top: 18%; left: -440px; width: 360px; height: 140px; color: var(--foreground); opacity: 0; animation: santa-crossing 20s linear 2s infinite; }
.santa-red { fill: var(--santa-red); }
.santa-sack { fill: var(--sage); }
.santa-skin { fill: var(--santa-skin); }
.santa-snow { fill: var(--snow); }
.santa-deer { animation: reindeer-bound 1.3s ease-in-out infinite alternate; transform-origin: center; }
.santa-deer-1 { animation-delay: -0.6s; }
.santa-legs { animation: reindeer-stride 0.65s ease-in-out infinite alternate; transform-origin: 48px 47px; }
.santa-carriage { animation: sleigh-bob 2.6s ease-in-out infinite alternate; }
.santa-trail { animation: sleigh-sparkle 1.7s ease-in-out infinite alternate; }
@keyframes reindeer-bound { from { transform: translateY(2px) rotate(-2deg); } to { transform: translateY(-5px) rotate(2deg); } }
@keyframes reindeer-stride { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
@keyframes sleigh-bob { from { transform: translateY(1px); } to { transform: translateY(-3px); } }
@keyframes sleigh-sparkle { from { opacity: 0.25; } to { opacity: 0.9; } }
@keyframes santa-crossing {
  0% { transform: translate(0, 16px); opacity: 0; }
  2% { opacity: 0.9; }
  29% { transform: translate(calc(50vw + 440px), -12px); opacity: 1; }
  58% { transform: translate(calc(100vw + 880px), 8px); opacity: 1; }
  60%, 100% { transform: translate(calc(100vw + 880px), 8px); opacity: 0; }
}
.christmas-elf { position: absolute; bottom: 5%; width: 84px; height: 129px; opacity: 0; }
.christmas-elf-left { left: 0; animation: elf-journey-left 36s linear 5s infinite; }
.christmas-elf-right { right: 0; animation: elf-journey-right 36s linear 5s infinite; }
.elf-body { width: 100%; height: 100%; overflow: visible; }
.elf-walk { animation: elf-bob 0.5s ease-in-out infinite alternate; transform-origin: 30px 80px; }
.elf-sparkles { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); opacity: 0; transform: scale(0.2); }
.christmas-elf-left .elf-sparkles { animation: elf-puff 36s linear 5s infinite; }
.christmas-elf-right .elf-sparkles { animation: elf-puff 36s linear 5s infinite; }
@keyframes elf-bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-4px) rotate(3deg); } }
@keyframes elf-journey-left {
  0% { transform: translate(-90px, 0) scale(1); opacity: 0; }
  2% { transform: translate(-40px, 0) scale(1); opacity: 1; }
  34% { transform: translate(calc(50vw - 96px), 0) scale(1); opacity: 1; }
  39% { transform: translate(calc(50vw - 96px), 0) scale(1); opacity: 1; }
  41% { transform: translate(calc(50vw - 96px), 0) scale(1.15); opacity: 0; }
  42%, 100% { transform: translate(calc(50vw - 96px), 0) scale(0); opacity: 0; }
}
@keyframes elf-journey-right {
  0% { transform: translate(90px, 0) scale(1); opacity: 0; }
  2% { transform: translate(40px, 0) scale(1); opacity: 1; }
  34% { transform: translate(calc(-50vw + 96px), 0) scale(1); opacity: 1; }
  39% { transform: translate(calc(-50vw + 96px), 0) scale(1); opacity: 1; }
  41% { transform: translate(calc(-50vw + 96px), 0) scale(1.15); opacity: 0; }
  42%, 100% { transform: translate(calc(-50vw + 96px), 0) scale(0); opacity: 0; }
}
@keyframes elf-puff {
  0%, 38.5% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  40.5% { opacity: 1; transform: scale(1.5) rotate(20deg); }
  44% { opacity: 0; transform: scale(2.2) rotate(45deg); }
  100% { opacity: 0; transform: scale(2.2) rotate(45deg); }
}
/* the elf that stays by the tree and dances */
.christmas-elf-dance { right: calc(3% + 104px); bottom: 4%; width: 70px; height: 107px; opacity: 1; animation: elf-dance 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.christmas-elf-dance .elf-walk { animation-duration: 0.4s; }
.christmas-elf-dance .elf-sparkles { animation: elf-twinkle 3.2s ease-in-out infinite; }
@keyframes elf-dance {
  0%, 100% { transform: translate(0, 0) rotate(-9deg); }
  25% { transform: translate(7px, -13px) rotate(0deg); }
  50% { transform: translate(14px, 0) rotate(9deg); }
  75% { transform: translate(7px, -13px) rotate(0deg) scaleX(-1); }
}
@keyframes elf-twinkle { 0%, 100% { opacity: 0; transform: scale(0.7); } 50% { opacity: 0.85; transform: scale(1.15) rotate(15deg); } }

/* lights garland + tree */
.christmas-lights { position: absolute; top: 0; left: 0; width: 100%; height: 44px; }
.christmas-tree { position: absolute; bottom: 4%; right: 3%; width: 110px; height: 147px; opacity: 0.95; }
.light-bulb { animation: light-blink 1.6s ease-in-out infinite; }
.light-bulb-0 { fill: var(--santa-red); color: var(--santa-red); animation-delay: 0s; }
.light-bulb-1 { fill: var(--santa-gold); color: var(--santa-gold); animation-delay: 0.4s; }
.light-bulb-2 { fill: var(--sage); color: var(--sage); animation-delay: 0.8s; }
.light-bulb-3 { fill: var(--snow); color: var(--snow); animation-delay: 1.2s; }
@keyframes light-blink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 3px currentColor); }
  50% { opacity: 0.25; filter: none; }
}
@media (max-width: 639px) {
  .christmas-sleigh { width: 250px; height: 97px; top: 22%; }
  .christmas-elf { width: 58px; height: 89px; }
  .christmas-elf-dance { width: 48px; height: 74px; right: calc(2% + 68px); bottom: 8%; }
  .christmas-tree { width: 72px; height: 96px; right: 2%; bottom: 8%; }
  .christmas-lights { height: 32px; }
}

/* Visitor controls: effects on/off + music. */
.xmas-controls { position: fixed; left: 1rem; bottom: 3.25rem; z-index: 9995; display: flex; align-items: center; gap: .5rem; }
.xmas-controls button { width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--foreground, #333) 18%, transparent);
  background: var(--surface, #fff); color: var(--primary, #8a4b34); font-size: 1.15rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(60,40,20,.16); transition: transform .2s, background .2s; display: grid; place-items: center; }
.xmas-controls button:hover { transform: translateY(-2px); }
.xmas-controls button:focus-visible { outline: 2px solid var(--primary, #8a4b34); outline-offset: 2px; }
.xmas-controls button[aria-pressed="true"] { background: var(--primary, #8a4b34); color: var(--primary-foreground, #fff); }
.xmas-controls .xmas-music.is-playing { animation: xmas-pulse 1.6s ease-in-out infinite; }
.xmas-controls .xmas-volume { width: 6.5rem; accent-color: var(--primary, #8a4b34); padding: .9rem .75rem; box-sizing: content-box; border-radius: 999px; background: var(--surface, #fff); box-shadow: 0 6px 18px rgba(60,40,20,.16); }
.xmas-controls .xmas-volume[hidden] { display: none; }
@keyframes xmas-pulse { 0%,100% { box-shadow: 0 6px 18px rgba(60,40,20,.16); } 50% { box-shadow: 0 0 0 7px color-mix(in oklch, var(--primary, #8a4b34) 22%, transparent); } }

@media (prefers-reduced-motion: reduce) {
  .xmas-controls .xmas-music.is-playing { animation: none; }
}

/* keep the announcement text clear of the lights */
body.is-xmas:not(.xmas-fx-off) .announce { padding-top: 1.75rem; }

/* ceramic artwork version (animated images instead of the drawn figures) */
.christmas-sleigh--img { width: 380px; height: auto; top: 14%; }
.christmas-elf-art { position: absolute; right: 2.5%; bottom: 3%; width: 150px; height: auto; }
@media (max-width: 639px) {
  .christmas-sleigh--img { width: 250px; height: auto; top: 20%; }
  .christmas-elf-art { width: 96px; right: 1.5%; bottom: 7%; }
}

/* stacked control: music on top, snow below, in one capsule */
.xmas-controls { flex-direction: column-reverse; align-items: center; gap: .3rem; padding: .3rem; border-radius: 999px;
  background: var(--surface, #fff); border: 1px solid color-mix(in oklch, var(--foreground, #333) 14%, transparent); box-shadow: 0 6px 18px rgba(60,40,20,.18); }
.xmas-controls button { box-shadow: none; border-color: transparent; background: transparent; width: 2.6rem; height: 2.6rem; }
.xmas-controls button:hover { transform: none; background: color-mix(in oklch, var(--primary, #8a4b34) 12%, transparent); }
.xmas-controls button[aria-pressed="true"]:hover { background: var(--primary, #8a4b34); }
.xmas-controls .xmas-volume { position: absolute; left: calc(100% + .5rem); top: .15rem; }

/* big screens: larger effect buttons */
@media (min-width: 1400px) { .xmas-controls button { width: 3.1rem; height: 3.1rem; font-size: 1.3rem; } }
