/* Advent 2026, v06: the village intro, readable over any part of the scene.
   © 2026 3D Geodata Academy - Dr. Florent Poux. learngeodata.eu */
#intro canvas{display:block;width:100%;height:100%;touch-action:manipulation}
/* a soft pool of night behind the intro words, so the light of the village never fights the text */
#introUI{isolation:isolate}
#introUI::before{content:"";position:absolute;z-index:-1;left:50%;bottom:-7vh;width:min(150vw,1180px);height:calc(100% + 18vh);transform:translateX(-50%);pointer-events:none;
  background:radial-gradient(closest-side at 50% 62%,rgba(4,6,12,.78),rgba(4,6,12,.5) 52%,rgba(4,6,12,0) 100%)}
#introUI .k{text-shadow:0 1px 2px rgba(0,0,0,.9),0 0 18px rgba(0,0,0,.85)}
#introUI p{text-shadow:0 1px 3px rgba(0,0,0,.9),0 2px 18px rgba(0,0,0,.85)}
/* the header stays legible over the stars and the tree */
body:not(.revealed) #vignette{background:
  linear-gradient(180deg,rgba(5,7,13,.62),transparent 15%,transparent 58%,rgba(5,7,13,.55) 82%,rgba(5,7,13,.8)),
  linear-gradient(90deg,rgba(5,7,13,.35),transparent 30%,transparent 70%,rgba(5,7,13,.35))}
/* short landscape phones: the words sit lower and tighter */
@media (max-height:500px){
  #introUI::before{bottom:-4vh;height:calc(100% + 10vh)}
}
