.christmas-tree { position:absolute; right:0; top:var(--tree-top,80px); width:var(--tree-width,400px); height:var(--tree-clip,600px); z-index:2; pointer-events:none; overflow:hidden; visibility:hidden; }
.christmas-tree[data-ready] { visibility:visible; }
.christmas-tree svg { display:block; width:100%; height:auto; max-width:none; }
.christmas-tree__spark { opacity:0; animation:ldt-tree-twinkle 8.4s ease-in-out infinite; animation-delay:var(--phase); }
.christmas-tree__star { animation:ldt-tree-star-pulse 10s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
@keyframes ldt-tree-twinkle { 0%,4%,17%,100%{opacity:0} 8%{opacity:.78} 11%{opacity:.15} 13%{opacity:.5} }
@keyframes ldt-tree-star-pulse {
  0%,44%,68%,100% { opacity:.08; transform:scale(.97); }
  50% { opacity:1; transform:scale(1.06); }
  55% { opacity:.3; transform:scale(1); }
  60% { opacity:.7; transform:scale(1.03); }
}
html[data-christmas-tree] .ribbon { position:relative; z-index:3; }
/* Keep the arrival label legible over branches without moving the journey. */
@media(min-width:651px) {
  html[data-christmas-tree] .christmas-journey__destination {
    background:var(--cream,#fff7eb);border-radius:4px;
    box-shadow:0 0 0 4px var(--cream,#fff7eb);
  }
}
@media(max-width:650px) {
  html[data-christmas-tree] .hero-copy { width:100%; }
  .christmas-tree { clip-path:none; }
  html[data-christmas-tree] .desktop-nav { background:transparent; }
}
@media(prefers-reduced-motion:reduce) { .christmas-tree__spark { animation:none; opacity:.18; } }

/* Mobile keeps the real photo above the decoration; desktop uses continuous overlap. */
html[data-christmas-tree] .hero-copy,
html[data-christmas-tree] .hero-visual { position:relative; z-index:1; }
html[data-christmas-tree] .desktop-nav { background:var(--cream); border-radius:6px; }
@media(max-width:650px) { .christmas-tree { z-index:0; } }

/* Seasonal decorations stay visible on desktop only. */
@media(max-width:650px) { .christmas-tree { display:none; } }

/* Colored glints affect only individual fairy lights, never the PNG layer. */
.christmas-tree__light { opacity:0; animation:ldt-tree-colored-twinkle 7.2s ease-in-out infinite; animation-delay:var(--light-phase); }
.christmas-tree__light--red { color:#ff483b; }
.christmas-tree__light--green { color:#68dd73; }
.christmas-tree__light--gold { color:#ffd26c; }
@keyframes ldt-tree-colored-twinkle {
  0%,4%,22%,100% { opacity:0; }
  9% { opacity:.95; }
  13% { opacity:.25; }
  17% { opacity:.65; }
}
@media(prefers-reduced-motion:reduce) { .christmas-tree__light { animation:none; opacity:.18; } }

/* A localized wave climbs the existing bulbs; the image itself never moves. */
.christmas-tree__wave { opacity:0; animation:ldt-tree-light-wave 10s ease-in-out infinite; animation-delay:var(--travel-delay); }
@keyframes ldt-tree-light-wave { 0%,11%,100% { opacity:0; } 5% { opacity:.85; } }
@media(prefers-reduced-motion:reduce) {
  .christmas-tree__wave { animation:none; opacity:0; }
  .christmas-tree__star { animation:none; opacity:.18; transform:none; }
}

/* Narrow the decoration slightly without changing its height or right edge. */
@media(min-width:651px) {
  .christmas-tree { transform:scaleX(.85); transform-origin:right top; }
}
