/* Chhath Puja theme - decoration only (no layout changes to the site) */
@import url('https://fonts.googleapis.com/css2?family=Yatra+One&display=swap');

#chhath-layer{position:fixed;inset:0;pointer-events:none;z-index:40;overflow:hidden;contain:layout style}
#chhath-layer .ch-sc{position:absolute;left:0;bottom:5px;width:280px;height:173px;transform-origin:left bottom}
#chhath-layer .ch-cane2{position:absolute;left:0;bottom:0;height:172px;width:auto;display:block;user-select:none;
  transform-origin:50% 96%;animation:chCane 6s ease-in-out infinite;filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}
#chhath-layer .ch-woman{position:absolute;left:72px;bottom:0;width:150px;height:148px}
#chhath-layer .ch-woman img{width:100%;height:100%;display:block;user-select:none;filter:drop-shadow(0 2px 5px rgba(0,0,0,.28))}
#chhath-layer .ch-fxsc{pointer-events:none}
#chhath-layer .ch-fxsc svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
@media (max-width:640px){
  #chhath-layer .ch-sc{transform:scale(.654);bottom:4px}
}

/* water: runs along the whole bottom edge (footer), low height */
#chhath-layer .ch-water{position:absolute;left:0;right:0;bottom:0;height:24px;overflow:hidden;opacity:.94}
#chhath-layer .ch-water>div{position:absolute;left:0;width:calc(100% + 160px);background-repeat:repeat-x;will-change:transform}
#chhath-layer .ch-water .w1{bottom:0;height:24px;background-size:130px 24px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234fb7c9'/%3E%3Cstop offset='1' stop-color='%231b6f93'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 6q32.5-5 65 0t65 0V24H0Z' fill='url(%23g)'/%3E%3C/svg%3E");
  animation:chWave 6s linear infinite}
#chhath-layer .ch-water .w2{top:-2px;height:26px;opacity:.6;background-size:160px 26px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='26'%3E%3Cpath d='M0 5q40-5 80 0t80 0V26H0Z' fill='%2378cfdc'/%3E%3C/svg%3E");
  animation:chWave2 10s linear infinite}
@keyframes chWave{to{transform:translateX(-130px)}}
@keyframes chWave2{to{transform:translateX(-160px)}}
@media (max-width:640px){
  #chhath-layer .ch-water,#chhath-layer .ch-water .w1{height:16px}
  #chhath-layer .ch-water .w1{background-size:130px 16px}
  #chhath-layer .ch-water .w2{height:18px;background-size:160px 18px}
}

/* water details */
.ch-fxsc .rp{transform-box:fill-box;transform-origin:center;opacity:0;animation:chRipple 4s ease-out infinite}
.ch-fxsc .rp.r2{animation-delay:2s}

@keyframes chRipple{0%{opacity:.7;transform:scale(.5)}100%{opacity:0;transform:scale(1.8)}}

@keyframes chCane{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2.2deg)}}
/* header: sugarcane in the logo's corner + greeting over the logo */
.ch-hdr-cane{position:fixed;z-index:52;pointer-events:none;left:-200px;top:0}
.ch-hdr-cane img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:50% 96%;animation:chCane 4.5s ease-in-out infinite;filter:drop-shadow(0 1px 3px rgba(0,0,0,.3))}

.ch-hdr{position:fixed;z-index:52;display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .6s ease;pointer-events:none;overflow:visible;white-space:nowrap}
.ch-hdr.on{opacity:1}
.ch-hdr .ch-hdr-txt{font-family:"Yatra One","Noto Sans Devanagari","Mangal",serif;line-height:1;
  color:#f6d98a;text-shadow:0 0 10px rgba(255,170,60,.6),0 1px 2px rgba(0,0,0,.35)}

/* pause when tab hidden, respect reduced motion, never print */
html.ch-paused #chhath-layer *,html.ch-paused .ch-hdr-cane *{animation-play-state:paused !important}
@media (prefers-reduced-motion:reduce){
  #chhath-layer *,.ch-hdr-cane *{animation:none !important}
  .ch-hdr{transition:none}
}
@media print{#chhath-layer,.ch-hdr,.ch-hdr-cane{display:none !important}}
