/*
 * Startbild, Szene „Weihnachten“ (Schnittstelle: frontend/js/quizStage/startScenes/README.md). Alle Selektoren unter .pq-start--christmas.
 * Bewegung: Lämpchen leuchten nacheinander auf (Wanderwelle, 12 s), Flocken sinken langsam; nur transform/opacity.
 */
.pq-start--christmas {
  /* Gala: Nachtblau-Tannengrün mit Gold (Tokens --xg-* wie theme-christmas-phone.css); Text Creme #fff6e3 auf Platte ≥ 14 : 1. */
  --pqs-plate: rgb(13 22 48 / 0.82);
  --pqs-plate-edge: rgb(217 178 90 / 0.7);
  --pqs-ink-soft: #fff6e3;
  --pqs-accent: #d9b25a;
  --pqs-shine: #f3d98b;
  background: #0a1226;
}

.pq-start--christmas .pqs-c {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.pq-start--christmas .pqs-c__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 66%, rgb(217 178 90 / 0.22), rgb(217 178 90 / 0) 70%),
    radial-gradient(ellipse 50% 30% at 50% 0%, rgb(243 217 139 / 0.12), rgb(243 217 139 / 0) 70%),
    linear-gradient(180deg, #070d20 0%, #0d1630 38%, #12261c 82%, #173526 100%);
}

.pq-start--christmas .pqs-c__stars { position: absolute; inset: 0; }
.pq-start--christmas .pqs-c__star {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #f3d98b;
  box-shadow: 0 0 0.9vh rgb(243 217 139 / 0.85);
  opacity: 0.75;
}

.pq-start--christmas .pqs-c__moon {
  position: absolute;
  right: 11vw;
  top: 17vh;
  width: 9vh;
  height: 9vh;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fffbe8, #f3d98b 70%);
  box-shadow: 0 0 5vh rgb(243 217 139 / 0.4), 0 0 14vh rgb(217 178 90 / 0.2);
}

.pq-start--christmas .pqs-c__trees { position: absolute; inset: 0; }
.pq-start--christmas .pqs-c__tree {
  position: absolute;
  bottom: 9vh;
  overflow: visible;
}
.pq-start--christmas .pqs-c__tree--0 path:first-child { fill: #0c2a1e; }
.pq-start--christmas .pqs-c__tree--1 path:first-child { fill: #12402c; }
.pq-start--christmas .pqs-c__tree path { stroke: rgb(243 217 139 / 0.32); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.pq-start--christmas .pqs-c__hill {
  position: absolute;
  inset: auto -10vw 0;
  height: 15vh;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  background: linear-gradient(180deg, #eef0e6 0%, #b9c4bf 40%, #5d7a6a 100%);
  border-top: 0.5vh solid #d9b25a;
  box-shadow: 0 -1vh 4vh rgb(217 178 90 / 0.3);
}

.pq-start--christmas .pqs-c__flakes { position: absolute; inset: 0; }
.pq-start--christmas .pqs-c__flake {
  position: absolute;
  top: -6vh;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgb(255 255 255 / 0.85) 45%, rgb(255 255 255 / 0) 72%);
  opacity: 0;
  animation: pqs-c-fall var(--d) linear var(--o) infinite;
  will-change: transform;
}
@keyframes pqs-c-fall {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 0.9; }
  92% { opacity: 0.8; }
  100% { transform: translate(var(--dr), 112vh); opacity: 0; }
}

.pq-start--christmas .pqs-c__lights {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 21vh;
  overflow: visible;
}
.pq-start--christmas .pqs-c__lit {
  opacity: 0.15;
  animation: pqs-c-glow 12s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.75s);
}
@keyframes pqs-c-glow {
  0%, 100% { opacity: 0.15; }
  12%, 48% { opacity: 1; }
  66% { opacity: 0.15; }
}

.pq-start--christmas .pqs-c__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, rgb(0 0 0 / 0) 55%, rgb(5 8 20 / 0.6) 100%);
}

/* Standbild: alle Lämpchen leuchten, Flocken stehen verteilt. */
.pq-start--christmas.is-still .pqs-c__lit { opacity: 1; }
.pq-start--christmas.is-still .pqs-c__flake { opacity: 0.85; transform: translateY(var(--y, 40vh)); }
.pq-start--christmas.is-still .pqs-c__flake:nth-child(3n) { --y: 18vh; }
.pq-start--christmas.is-still .pqs-c__flake:nth-child(3n+1) { --y: 52vh; }
.pq-start--christmas.is-still .pqs-c__flake:nth-child(3n+2) { --y: 78vh; }
@media (prefers-reduced-motion: reduce) {
    .pq-start--christmas .pqs-c__lit { opacity: 1; }
  .pq-start--christmas .pqs-c__flake { opacity: 0.85; transform: translateY(var(--y, 40vh)); }
  .pq-start--christmas .pqs-c__flake:nth-child(3n) { --y: 18vh; }
  .pq-start--christmas .pqs-c__flake:nth-child(3n+1) { --y: 52vh; }
  .pq-start--christmas .pqs-c__flake:nth-child(3n+2) { --y: 78vh; }
}
