/* A hidden overflow ancestor captures sticky positioning even if it never scrolls. */
#lgn-home #lgn-kvarter.kv-ready { overflow:visible !important; padding-bottom:0 }
#lgn-kvarter .kv-track {position:relative; height:calc(100svh + 315svh); margin-top:clamp(24px,4vw,62px)}
#lgn-kvarter .kv-stage {position:sticky;top:var(--kv-top,64px);height:calc(100svh - var(--kv-top,64px));display:flex;flex-direction:column;justify-content:center;isolation:isolate;overflow:hidden;box-sizing:border-box}
#lgn-kvarter .kv-stage .city-wrap {width:100%;margin:0;padding:0;flex:none}
#lgn-kvarter.kv-ready #lgn-city {width:100%;min-width:0;max-width:none;height:clamp(120px,48svh,630px);display:block;transform:none;margin:0}
#lgn-kvarter .kv-stage .district-pins {display:flex;justify-content:space-around;padding:clamp(6px,1.5vh,20px) 4%;gap:8px}
#lgn-kvarter .kv-stage .district-pins button {min-width:0;white-space:nowrap;font-size:clamp(17px,2.25vw,42px);padding:4px 2px 8px;line-height:1.15}
#lgn-kvarter .kv-stage .district-bottom {display:grid;align-items:center;grid-template-columns:1.05fr 1.3fr auto;gap:3.5vw;margin:0 7%;padding:clamp(10px,2vh,25px) 0 0;min-height:6.8em}
#lgn-kvarter .kv-stage .district-bottom h3 {font-size:clamp(24px,2.6vw,50px);margin:4px 0;line-height:1.05}
#lgn-kvarter #lgn-district-text {font-size:clamp(15px,1.15vw,21px);line-height:1.45;margin:0}
#lgn-kvarter .kv-hint {letter-spacing:.12em;text-transform:uppercase;margin:18px 0 0;font-size:10px}
#lgn-kvarter .kv-room {stroke:none}
#lgn-kvarter .kv-stage .facade {transition:opacity .4s ease}
#lgn-kvarter .kv-stage .facade.inactive {opacity:.43}
#lgn-kvarter .kv-stage .kv-room {opacity:.22;transition:opacity .4s}
#lgn-kvarter .kv-stage .facade:not(.inactive) .kv-room {opacity:1}
#lgn-kvarter .kv-stage .district-bottom a:focus-visible {opacity:1!important}
#lgn-kvarter .illustration-note {margin-bottom:0;padding-bottom:22px}
@media(max-width:720px){
 #lgn-kvarter .kv-stage .city-wrap {overflow:visible}
 #lgn-kvarter.kv-ready #lgn-city {height:clamp(155px,40svh,385px)}
 #lgn-kvarter .kv-stage .district-pins {display:flex;position:static;gap:4px;padding:6px 4vw 10px;flex-wrap:nowrap}
 #lgn-kvarter .kv-stage .district-pins button {display:inline-flex;width:auto;align-items:center;gap:4px;font-size:clamp(15px,4.5vw,23px);margin:0}
 #lgn-kvarter .kv-stage .district-pins span {display:none}
 #lgn-kvarter .kv-stage .district-bottom {display:block;min-height:12.5em;margin:0 7vw;padding-top:10px}
 #lgn-kvarter .kv-stage .district-bottom h3 {font-size:clamp(25px,7vw,35px);margin:.2em 0}
 #lgn-kvarter .kv-stage .district-bottom a {display:inline-flex;margin-top:8px}
}
#lgn-kvarter.kv-simple .kv-track {height:auto}
#lgn-kvarter.kv-simple .kv-stage {height:auto;position:relative;top:0;overflow:visible}
#lgn-kvarter.kv-simple .facade,#lgn-kvarter.kv-simple .kv-room {transition:none}
