/*lh-36.30 lh-tod-blend (default on, '0'=old): the phase --td-* !important values and window/ceiling opacity overrides only apply without html.lh-tod-blend, so the JS time-of-day blend shows*/
/*LH3622 lh-room1-sky: clouds drift -2..+2 room px (640 scale), eased via held whole-px steps, 7s alternate; sun glow 0.15..0.6, 3.5s alternate. Frame/skyline live in the canvas and never move.*/
.lh-r1sky,.lh-r1glow{position:absolute;pointer-events:none;display:none}
html.lh-r1-sky .lh-r1sky,html.lh-r1-sky .lh-r1glow{display:block}
.lh-r1sky{overflow:hidden}
.lh-r1sky>i{position:absolute;left:0;top:0;width:100%;height:100%;background:url(../h/img/rooms/sky_clouds.5de130b0ff.webp) 0 0/100% 100% no-repeat;image-rendering:pixelated;animation:lhR1cl 7s infinite alternate;will-change:transform}
@keyframes lhR1cl{0%{transform:translateX(calc(var(--u)*-2));animation-timing-function:step-end}23%{transform:translateX(calc(var(--u)*-1));animation-timing-function:step-end}42%{transform:translateX(0);animation-timing-function:step-end}58%{transform:translateX(var(--u));animation-timing-function:step-end}77%,100%{transform:translateX(calc(var(--u)*2))}}
.lh-r1glow{border-radius:50%;background:radial-gradient(circle,rgba(255,226,150,.95) 0,rgba(255,170,90,.55) 35%,rgba(255,140,80,0) 70%);mix-blend-mode:screen;opacity:.15;animation:lhR1gl 3.5s ease-in-out infinite alternate}
@keyframes lhR1gl{from{opacity:.15}to{opacity:.6}}
html.lh-r1-hid .lh-r1sky>i,html.lh-r1-hid .lh-r1glow{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.lh-r1sky>i,.lh-r1glow{animation:none}.lh-r1sky>i{transform:none}}

/*lh-36.28r3 lh-r1-clean: floor line 62% for the clean room (same effect as lh-floor62='1' for the window-light pool; s.4789a7d549.js untouched, an !important rule beats its inline --td-fl), beam starts under the new window frame (640 box x 40.2-58.6%, y 48.5%) so no light falls on the frame*/
html.lh-r1-clean.lh-fl62{--td-fl:62%!important}
html.lh-r1-clean .td-win>b{clip-path:polygon(40.2% 48.5%,58.6% 48.5%,72% var(--td-fl),30% var(--td-fl))}

/*lh-36.28r4 lh-tod-behind: room art on canvas.lh-r1back (z0) under the .td-ov overlays (z1); hero/pet main canvas raised to z2 so no light, beam or tint draws over them. Lighting matched to Planner's tod2_cycle.gif: morning beam slants down-right onto the wall, midday two vertical shafts (mullion gap) onto the floor, sunset warm beam slants down-left to the baseboard, night no beam + ceiling glow + warm floor pool. '0' = r3.*/
html.lh-tod-behind canvas.lh-r1back{position:absolute;z-index:0;pointer-events:none;image-rendering:pixelated;margin:0}
html.lh-tod-behind .advcol>canvas.avmain.lh-tb{z-index:2!important}
html.lh-tod-behind.lh-r1-clean .td-win>b{opacity:.5;background:linear-gradient(180deg,var(--td-lc) 0,var(--td-lc) 25%,transparent 100%)}
html.lh-tod-behind.lh-r1-clean[data-tod=morning] .td-win>b{clip-path:polygon(40.2% 15.9%,58.6% 15.9%,82% 62.5%,57% 62.5%)}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>b{clip-path:polygon(41% 28%,58% 28%,58.6% 86%,40.6% 86%);-webkit-mask-image:linear-gradient(90deg,#000 0 47.6%,transparent 48.6% 51.2%,#000 52.2%);mask-image:linear-gradient(90deg,#000 0 47.6%,transparent 48.6% 51.2%,#000 52.2%);opacity:.55}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>b{clip-path:polygon(40.2% 15.9%,58.6% 15.9%,42% 62.5%,17% 62.5%);opacity:.6}
html.lh-tod-behind.lh-r1-clean .td-win>i{opacity:.3}
html.lh-tod-behind.lh-r1-clean[data-tod=morning] .td-win>i{left:52%;width:34%;height:8%;opacity:.25}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>i{left:36%;width:28%;height:22%;opacity:.4}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>i{left:12%;width:34%;height:8%;opacity:.3}
html.lh-tod-behind.lh-r1-clean .td-ceil::after{content:"";position:absolute;left:24%;width:52%;top:calc(var(--td-fl) + 6%);height:20%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,205,140,.85),rgba(255,205,140,0))}

/* LH3628r5 GIF match: soft beam edges, warmer sunset, stronger night pool and ceiling glow (CSS only; tod file untouched) */
html.lh-tod-behind.lh-r1-clean .td-win>b,html.lh-tod-behind.lh-r1-clean .td-win>i{filter:blur(6px)}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>b{background:linear-gradient(180deg,rgba(255,168,92,.95) 0,rgba(255,140,70,.75) 35%,rgba(255,120,60,0) 100%);opacity:.75}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>i{background:radial-gradient(closest-side,rgba(255,150,80,.9),rgba(255,150,80,0));opacity:.45}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=night] .td-ceil{opacity:.95!important}
html.lh-tod-behind.lh-r1-clean[data-tod=night] .td-ceil::after{background:radial-gradient(closest-side,rgba(255,200,130,.95),rgba(255,190,120,.35) 60%,rgba(255,190,120,0));filter:blur(4px)}

/* LH3628r6 Planner motion spec / tod2_cycle.gif (= Eddy's liked mockup): fixed sprite positions per phase (sampled from tod2 stills), morning+midday day sun, sunset sun, night moon+stars; subtle shine. CSS only, s.4789a7d549.js untouched */
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=morning]{--td-s1:#9fd3f2!important;--td-s2:#cbddde!important;--td-s3:#f6e7c8!important;--td-tn:rgb(232,238,255)!important;--td-lc:rgb(255,241,214)!important;--td-la:.55!important;--td-cl:.3!important;--td-sx:.26!important;--td-sy:.55!important;--td-so:1!important;--td-to:0!important;--td-mo:0!important}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=midday]{--td-s1:#5fb4ee!important;--td-s2:#8fcdf5!important;--td-s3:#bfe4fb!important;--td-tn:#fff!important;--td-lc:rgb(255,250,240)!important;--td-la:.9!important;--td-cl:.35!important;--td-sx:.27!important;--td-sy:.24!important;--td-so:1!important;--td-to:0!important;--td-mo:0!important}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=sunset]{--td-s1:#3d4f9a!important;--td-s2:#f08a5d!important;--td-s3:#ffc070!important;--td-tn:rgb(255,224,200)!important;--td-lc:rgb(255,176,112)!important;--td-la:1!important;--td-cl:.45!important;--td-tx:.28!important;--td-ty:.68!important;--td-to:1!important;--td-so:0!important;--td-mo:0!important}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=night]{--td-s1:#0b1636!important;--td-s2:#172350!important;--td-s3:#23305e!important;--td-tn:rgb(107,120,184)!important;--td-la:0!important;--td-cl:.05!important;--td-mx:.27!important;--td-my:.24!important;--td-mo:1!important;--td-so:0!important;--td-to:0!important}
html.lh-tod-behind.lh-r1-clean .lh-r1sky>.td-sun{--d:26!important;--h:#fff3b0!important;background:radial-gradient(circle,#fffbe0 0,#ffeb8a 55%,#ffd94e 100%)!important;box-shadow:0 0 calc(var(--u)*6) calc(var(--u)*2) rgba(255,240,160,.5)}
html.lh-tod-behind.lh-r1-clean .lh-r1sky>.td-set{--d:30!important;--h:#ff8a50!important;background:radial-gradient(circle,#ffb070 0,#ff6a3a 60%,#e8452a 100%)!important;box-shadow:0 0 calc(var(--u)*7) calc(var(--u)*2) rgba(255,120,70,.45)}
html.lh-tod-behind.lh-r1-clean .lh-r1sky>.td-moon{--d:19!important;--h:#dfe8ff!important;background:none!important;box-shadow:inset calc(var(--u)*5) calc(var(--u)*-1) 0 0 #f6f2d6,0 0 calc(var(--u)*5) rgba(210,225,255,.3)}
html.lh-tod-behind.lh-r1-clean[data-tod=night] .lh-r1sky>.tds{width:calc(var(--u)*2);height:calc(var(--u)*2);background:#fffbe8}
html.lh-tod-behind.lh-r1-clean:not([data-tod=night]) .lh-r1sky>.tds{display:none}
html.lh-tod-behind.lh-r1-clean .lh-r1sky>i{animation:lhClSw 7s ease-in-out infinite alternate}@keyframes lhClSw{from{translate:-1px 0}to{translate:1px 0}}
html.lh-r1-hid html.lh-tod-behind.lh-r1-clean .lh-r1sky>i,html.lh-r1-hid.lh-tod-behind .lh-r1sky>i{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){html.lh-tod-behind.lh-r1-clean .lh-r1sky>i{animation:none}}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend):not([data-tod=night]):not([data-tod=sunset]) .td-ceil{opacity:0!important}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=sunset] .td-ceil{opacity:0!important}
html.lh-tod-behind.lh-r1-clean[data-tod=night] .td-ceil{background:radial-gradient(ellipse 42% 13% at 50% 73%,rgba(255,195,125,.6),rgba(255,195,125,0) 100%),radial-gradient(ellipse 50% 12% at 50% 0,rgba(255,195,125,.3),rgba(255,195,125,0) 100%)!important}html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=night] .td-ceil{opacity:1!important}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=night] .td-win{opacity:0!important;visibility:hidden}
html.lh-tod-behind.lh-r1-clean .td-win>b{filter:blur(8px)}
html.lh-tod-behind.lh-r1-clean[data-tod=morning] .td-win>b{clip-path:polygon(41% 34.9%,58.3% 34.9%,80% var(--td-fl),55% var(--td-fl))!important;-webkit-mask-image:none;mask-image:none;opacity:.32!important}
html.lh-tod-behind.lh-r1-clean[data-tod=morning] .td-win>i{opacity:.15!important}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>b{opacity:.22!important}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>i{opacity:.14!important}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>b{opacity:.45!important}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>i{opacity:.25!important}
html.lh-tod-behind.lh-r1-clean .lh-r1sky{clip-path:inset(0 0 0 1px)}/* r6: hides 1px cyan sky strip at glass left edge (Director minor) */
/* LH3628r7: skyline + lit night windows (mask sampled from Eddy's tod2 stills), r6 clouds kept and visible every phase, sprites in the left panes (hero never covers), soft narrow beams like the stills */
html.lh-tod-behind.lh-r1-clean[data-tod=morning]{--lh-city:#6a7595}html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=morning]{--td-cl:.85!important}
html.lh-tod-behind.lh-r1-clean[data-tod=midday]{--lh-city:#5c6f8c}html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=midday]{--td-cl:.9!important}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset]{--lh-city:#3e2e4c}html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=sunset]{--td-cl:.85!important}
html.lh-tod-behind.lh-r1-clean[data-tod=night]{--lh-city:#18161f}html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=night]{--td-cl:.45!important}
html.lh-tod-behind.lh-r1-clean .lh-r1sky::after{content:'';position:absolute;inset:0;z-index:4;background:var(--lh-city,#5c6f8c);-webkit-mask:url(../h/img/rooms/sky_city_mask.b645c16525.png) 0 0/100% 100% no-repeat;mask:url(../h/img/rooms/sky_city_mask.b645c16525.png) 0 0/100% 100% no-repeat;image-rendering:pixelated;pointer-events:none}
html.lh-tod-behind.lh-r1-clean .lh-r1sky::before{content:'';position:absolute;inset:0;z-index:5;background:url(../h/img/rooms/sky_city_lit.351f1d189e.png) 0 0/100% 100% no-repeat;image-rendering:pixelated;opacity:0;pointer-events:none}
html.lh-tod-behind.lh-r1-clean[data-tod=night] .lh-r1sky::before{opacity:1}
html.lh-tod-behind.lh-r1-clean .lh-r1sky>.td-sun::before,html.lh-tod-behind.lh-r1-clean .lh-r1sky>.td-set::before{width:260%;height:260%}
html.lh-tod-behind.lh-r1-clean[data-tod=morning] .td-win>b{clip-path:polygon(42% 34.9%,57% 34.9%,74% var(--td-fl),62% var(--td-fl))!important;opacity:.2!important;filter:blur(6px)}
html.lh-tod-behind.lh-r1-clean[data-tod=morning] .td-win>i{left:58%;width:22%;opacity:.12!important}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>b{opacity:.14!important}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>i{opacity:.1!important}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>b{clip-path:polygon(42% 34.9%,57% 34.9%,36% var(--td-fl),24% var(--td-fl))!important;opacity:.24!important}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>i{left:20%;width:22%;opacity:.12!important}
html.lh-tod-behind.lh-r1-clean[data-tod=morning] .lh-r1sky>i,html.lh-tod-behind.lh-r1-clean[data-tod=midday] .lh-r1sky>i{filter:grayscale(1) brightness(1.7) contrast(.9)}
html.lh-tod-behind.lh-r1-clean[data-tod=night] .lh-r1sky>i{filter:grayscale(.7) brightness(.55)}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=morning]{--td-cl:.5!important}html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=midday]{--td-cl:.45!important}html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=sunset]{--td-cl:.6!important}
html.lh-tod-behind.lh-r1-clean .lh-r1sky>.tdp{z-index:3}
/* LH3628r8: night darker on room layers only (tint/ceiling/floor pool); hero+pet stay untinted via lh-tod-behind */
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=night]{--td-tn:rgb(72,80,132)!important}
html.lh-tod-behind.lh-r1-clean[data-tod=night] .td-ceil{background:radial-gradient(ellipse 40% 12% at 50% 73%,rgba(255,195,125,.3),rgba(255,195,125,0) 100%),radial-gradient(ellipse 46% 10% at 50% 0,rgba(255,195,125,.12),rgba(255,195,125,0) 100%)!important}html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=night] .td-ceil{opacity:1!important}
html.lh-tod-behind.lh-r1-clean[data-tod=night] .td-ceil::after{opacity:.55}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=night]{--td-tn:rgb(92,102,160)!important}
/* LH3628r9: beams start exactly at the window glass (--lh-gl/gr/gm/gb set from lhR1Pos glass rect), soft feathered edges (blur on parent, shape on ::before), fade top->bottom */
html.lh-tod-behind.lh-r1-clean .td-win>b{clip-path:none!important;-webkit-mask:none!important;mask:none!important;background:none!important;filter:blur(5px)!important}
html.lh-tod-behind.lh-r1-clean .td-win>b::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 0,transparent var(--lh-gb,35%),var(--td-lc) calc(var(--lh-gb,35%) + 1%),transparent 100%)}
html.lh-tod-behind.lh-r1-clean[data-tod=morning] .td-win>b::before{clip-path:polygon(var(--lh-gl,40%) var(--lh-gb,35%),var(--lh-gr,59%) var(--lh-gb,35%),calc(var(--lh-gr,59%) + 16%) var(--td-fl),calc(var(--lh-gl,40%) + 20%) var(--td-fl))}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>b::before{clip-path:polygon(var(--lh-gl,40%) var(--lh-gb,35%),var(--lh-gr,59%) var(--lh-gb,35%),calc(var(--lh-gr,59%) - 20%) var(--td-fl),calc(var(--lh-gl,40%) - 16%) var(--td-fl))}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>b::before{clip-path:polygon(var(--lh-gl,40%) var(--lh-gb,35%),var(--lh-gr,59%) var(--lh-gb,35%),calc(var(--lh-gr,59%) + 2%) 96%,calc(var(--lh-gl,40%) - 2%) 96%);background:linear-gradient(180deg,transparent 0,transparent var(--lh-gb,35%),var(--td-lc) calc(var(--lh-gb,35%) + 1%),rgba(255,255,255,.35) 75%,transparent 96%);-webkit-mask:linear-gradient(90deg,transparent calc(var(--lh-gl,40%) - 2%),#000 calc(var(--lh-gl,40%) + 3%),#000 calc(var(--lh-gm,50%) - 3%),transparent calc(var(--lh-gm,50%) - .5%),transparent calc(var(--lh-gm,50%) + .5%),#000 calc(var(--lh-gm,50%) + 3%),#000 calc(var(--lh-gr,59%) - 3%),transparent calc(var(--lh-gr,59%) + 2%));mask:linear-gradient(90deg,transparent calc(var(--lh-gl,40%) - 2%),#000 calc(var(--lh-gl,40%) + 3%),#000 calc(var(--lh-gm,50%) - 3%),transparent calc(var(--lh-gm,50%) - .5%),transparent calc(var(--lh-gm,50%) + .5%),#000 calc(var(--lh-gm,50%) + 3%),#000 calc(var(--lh-gr,59%) - 3%),transparent calc(var(--lh-gr,59%) + 2%))}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>b{opacity:.2!important}
html.lh-tod-behind.lh-r1-clean[data-tod=morning] .td-win>b{opacity:.24!important}
html.lh-tod-behind.lh-r1-clean[data-tod=sunset] .td-win>b{opacity:.28!important}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>i{opacity:.06!important;filter:blur(8px)}
/* LH3628r9 lh-room-up: whole room column slides up past the flat band (art pixels untouched; overlays follow canvas offsetTop) */html.lh-room-up.lh-r1-clean .advcol{margin-top:-17px;margin-bottom:17px}
html.lh-tod-behind.lh-r1-clean[data-tod=midday] .td-win>b{opacity:.3!important}

/* lh-37.02.6 night floor: hide the screen-blend pool and ::after. Keep a soft ceiling wash. */
html.lh-tod-behind.lh-r1-clean[data-tod=night] .td-ceil{
  background:radial-gradient(ellipse 46% 10% at 50% 0,rgba(255,200,140,.10),rgba(255,200,140,0) 100%)!important;
}
html.lh-tod-behind.lh-r1-clean:not(.lh-tod-blend)[data-tod=night] .td-ceil{opacity:.55!important}
html.lh-tod-behind.lh-r1-clean[data-tod=night] .td-ceil::after,
html.lh-tod-behind.lh-r1-clean .td-ceil.td-xf[data-ph=night]::after,
html.lh-moon-glow-dim:not(.lh-tod-xf).lh-tod-behind.lh-r1-clean[data-tod=night] .td-ceil::after,
html.lh-moon-glow-dim.lh-tod-xf.lh-tod-behind.lh-r1-clean .td-ceil.td-xf[data-ph=night]::after{
  display:none!important;
}
