/* Warm light stays inside each landmark; the page dot field is untouched. */
.city-art[data-light-style]{--landmark-size:40px;--lamp-width:12px;--lamp-height:18px;--lamp-top:-10px}
:is(.city-art,.night-preview)[data-light-style] .landmark-wrap{overflow:visible;isolation:isolate}
:is(.city-art,.night-preview)[data-light-style] img{z-index:1;filter:none;transition:filter .8s cubic-bezier(.22,1,.36,1)}
.night-lamp{position:absolute;left:50%;top:var(--lamp-top,-10px);width:var(--lamp-width,12px);height:var(--lamp-height,18px);display:block;pointer-events:none;color:#ffe19b;opacity:0;visibility:hidden;transform:translate(-50%,-8px);z-index:3;isolation:isolate;transition:opacity .7s ease,transform .7s cubic-bezier(.22,1,.36,1),visibility 0s linear .7s}
.night-lamp svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 3px #ffd47766)}
.night-lamp:before{content:'';position:absolute;left:50%;top:calc(100% - 3px);width:min(80px,calc(var(--landmark-size,40px) * 1.8));height:min(80px,calc(var(--landmark-size,40px) * 1.15));transform:translateX(-50%);background:linear-gradient(180deg,#ffdf8f61 0%,#ffd16c2e 44%,#ffce650d 78%,#ffce6500 100%);clip-path:polygon(50% 0,100% 100%,0 100%);filter:blur(1px);z-index:-1}
.night-lamp:after{content:'';position:absolute;left:50%;top:72%;width:18px;height:18px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#ffe8aa77 0%,#ffd16c26 38%,#ffd16c00 72%);z-index:-1}
:is(.city-art,.night-preview)[data-night="true"][data-light-style="1"] .night-lamp{opacity:1;visibility:visible;transform:translate(-50%,0);transition-delay:0s}
@starting-style{.city-art[data-night="true"][data-light-style="1"] .night-lamp{opacity:0;transform:translate(-50%,-8px)}}
:is(.city-art,.night-preview)[data-night="true"][data-light-style="1"] img{filter:sepia(.8) saturate(1.65) hue-rotate(350deg) brightness(1.18) drop-shadow(0 0 2px #ffdc8a7a) drop-shadow(0 0 5px #ffd16c3d)}
:is(.city-art,.night-preview)[data-night="true"][data-light-style="2"] img{filter:sepia(.65) saturate(1.8) brightness(1.12) drop-shadow(0 0 2px #ffda8399) drop-shadow(0 0 5px #ffd16c52)}
:is(.city-art,.night-preview)[data-night="true"][data-light-style="3"] img{filter:sepia(.45) saturate(1.6) brightness(1.1) drop-shadow(0 0 2px #ffe5a680) drop-shadow(0 0 4px #ffd16c33)}
:is(.city-art,.night-preview)[data-night="true"][data-light-style="4"] img{filter:sepia(.85) saturate(1.9) brightness(1.16) drop-shadow(0 0 2px #ffda8399) drop-shadow(0 0 6px #ffd16c61)}
:is(.city-art,.night-preview)[data-night="true"][data-light-style="5"] img{filter:drop-shadow(0 0 .6px #ffd16c26)}

/* The gallery can use the same lamp markup at a larger landmark size. */
.night-preview.landmark-wrap{--landmark-size:88px;--lamp-width:16px;--lamp-height:24px;--lamp-top:-10px;position:relative;width:var(--landmark-size);height:var(--landmark-size);margin:0 auto 22px;overflow:visible;isolation:isolate}
.night-preview.landmark-wrap>img{position:absolute;inset:0;width:100%;height:100%;margin:0;object-fit:contain;pointer-events:none}
@media(max-height:430px){.city-art[data-light-style]{--landmark-size:24px;--lamp-width:8px;--lamp-height:12px;--lamp-top:-7px}.city-art .night-lamp:after{width:12px;height:12px}}
@media(prefers-reduced-motion:reduce){.night-lamp,:is(.city-art,.night-preview)[data-light-style] img{transition:none}.night-lamp{transform:translate(-50%,0)}}

/* The chosen night treatment blends continuously into each daytime study. */
.city-art[data-cycle] .day-image{opacity:var(--landmark-day-strength,var(--day-strength,1));filter:sepia(var(--day-warmth,0)) saturate(1.1);transition:opacity .55s ease,filter .8s ease}
.city-art[data-cycle] .night-images{position:absolute;inset:0;display:block;z-index:1;isolation:isolate;pointer-events:none;opacity:var(--landmark-strength,var(--night-strength,0));transition:opacity .55s ease}
.city-art[data-cycle] .night-image{opacity:calc(1 - var(--sleep-color-strength,var(--sleep-strength,0)));filter:drop-shadow(0 0 .6px #ffd16c26);transition:opacity .65s ease}
.city-art[data-cycle] .sleep-image{opacity:var(--sleep-color-strength,var(--sleep-strength,0));filter:hue-rotate(180deg) saturate(.9) brightness(1.05) drop-shadow(0 0 .6px #91baff26);transition:opacity .65s ease}
@supports(mix-blend-mode:plus-lighter){.city-art[data-cycle] .night-images img{mix-blend-mode:plus-lighter}}
/* Fade the entire fixed cluster as one shape. */
.city-art .sleep-mark{position:absolute;left:var(--sleep-left,112%);top:var(--sleep-top,10%);width:max(18px,calc(var(--landmark-size,40px) * .55));height:max(18px,calc(var(--landmark-size,40px) * .55));z-index:3;pointer-events:none;color:#a4c5f3;font-family:Arial,Helvetica,sans-serif;font-size:max(8px,calc(var(--landmark-size,40px) * .25));font-weight:500;font-style:italic;line-height:1;transform:rotate(-16deg);transform-origin:bottom left;opacity:var(--sleep-mark-strength,var(--sleep-strength,0));transition:opacity .65s ease}
.sleep-mark span{position:absolute;display:block;opacity:1;transition:none}
.sleep-mark span:nth-child(1){left:0;top:55%;font-size:.68em}
.sleep-mark span:nth-child(2){left:32%;top:27%;font-size:.85em}
.sleep-mark span:nth-child(3){left:65%;top:0;font-size:1em}
@media(max-height:430px){.city-art .sleep-mark{left:var(--sleep-left-compact,121%);top:var(--sleep-top-compact,10%)}}
@media(prefers-reduced-motion:reduce){.city-art[data-cycle] img,.city-art[data-cycle] .night-images,.city-art .sleep-mark{transition:none}}

/* During a drag, opacity tracks row position without a trailing time delay. */
.city-art[data-sleep-scrubbing="true"] .sleep-mark{transition:none}
