/* Night counter: dye, rain, heat. Each effect is foreground-only and never
   intercepts the interaction or modifies the base painting. */
#stall .yt-stage { isolation:isolate; }
#stall #rain, #stall .yt-fabric, #stall .yt-stovesteam, #stall .yt-stallglow {
  position:absolute; pointer-events:none; user-select:none;
}
#stall #rain { inset:0; width:100%; height:100%; z-index:1; }
#stall .yt-fabric {
  top:var(--yt-fabric-top,0px); right:-1.6%; width:clamp(210px,40%,850px);
  z-index:5; color:#e7c89c; transform-origin:100% 0;
  filter:drop-shadow(0 3px 2px rgb(15 14 26 / .25));
}
#stall .yt-fabric svg { width:100%; height:auto; display:block; overflow:visible; }
#stall .yt-stallglow {
  inset:4% -4% 12% 45%; z-index:1;
  background:radial-gradient(ellipse at 68% 50%,rgb(255 160 66 / .125),transparent 59%);
  opacity:.32; transition:opacity 1.1s ease;
}
#stall .yt-stovesteam {
  right:var(--yt-steam-r,8%); bottom:var(--yt-steam-b,0%);
  width:clamp(100px,17%,330px); height:36%; overflow:visible; z-index:4;
  opacity:.67; transition:opacity 1s; z-index:6;
}
#stall .yt-stovesteam svg { width:100%; height:100%; overflow:visible; }
#stall .yt-rear-pot {
  position:absolute; pointer-events:none; z-index:1; 
  left:calc(50% - max(7cqw,12.44cqh)); top:calc(50% + max(9.29cqw,16.5cqh));
  width:max(11cqw,19.5cqh); height:max(12cqw,21.3cqh); 
  transform:translate(-45%,-99%); opacity:.91;
}
#stall .yt-rear-pot svg { display:block; width:100%; height:100%; overflow:visible; }
#stall .yt-steamstroke { fill:none; stroke-linecap:round; stroke:rgb(255 233 187 / .65); }
#stall #mio { transform-origin:53% 85%; rotate:var(--yt-mio-lean,0deg); }
#stall .yt-cel { position:relative; }
#stall .yt-mio-ink { display:block; position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
#stall .yt-mio-ink[hidden] { display:none; }
#stall .yt-cel[data-ink="live"] #mio { opacity:0; }
@media(max-width:720px) {
  #stall .yt-fabric { width:54%; min-width:0; right:-3%; }
  #stall .yt-stovesteam { bottom:var(--yt-steam-mobile-b,3%); right:3%; height:34%; width:22%; }
  #stall .yt-stallglow { inset:0 0 0 30%; }
}
@media(max-height:500px) and (orientation:landscape) {
  #stall .yt-fabric { width:32%; }
  #stall .yt-stovesteam { height:33%; width:13%; }
}
@media(prefers-reduced-motion:reduce) {
  #stall .yt-stallglow, #stall .yt-stovesteam { transition:none; }
}
