/* Lighting showroom */
@property --light-sky { syntax: '<color>'; inherits: true; initial-value: #101e2c; }
@property --light-wall { syntax: '<color>'; inherits: true; initial-value: #235361; }
@property --light-floor { syntax: '<color>'; inherits: true; initial-value: #b7d8d6; }
.lighting-showroom{
 position:fixed;inset:0;z-index:10;overflow:auto;overscroll-behavior:contain;
 color:#f6fbf8;background:var(--light-sky);outline:none;
 transition:--light-sky .55s,--light-wall .55s,--light-floor .55s;
}
.lighting-room{
 min-height:100svh;display:grid;grid-template-rows:auto minmax(340px,1fr) auto auto;
 padding:clamp(89px,11vh,125px) max(26px,6vw) 24px;
 isolation:isolate;position:relative;
 background:
  radial-gradient(ellipse at 56% 52%,#fff2,transparent 55%),
  linear-gradient(174deg,var(--light-sky) 6%,var(--light-wall) 48%,var(--light-floor) 77%);
}
.lighting-room::before{
 content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
 background:repeating-linear-gradient(112deg,transparent 0 144px,#ffffff08 145px 146px,transparent 147px 295px);
 mask-image:linear-gradient(#000,transparent 68%);
}
.lighting-room-head{z-index:2;display:flex;justify-content:space-between;align-items:center;gap:12px}
.lighting-room-head h2{margin:0;font-size:clamp(15px,1.55vw,23px);font-weight:650}
.lighting-back{font-size:14px;text-decoration:underline;text-underline-offset:4px}
.lighting-stage{position:relative;isolation:isolate;min-width:0;touch-action:pan-y;user-select:none;cursor:grab}
.lighting-stage:active{cursor:grabbing}
.lighting-track{
 position:absolute;inset:14px 0 10px;overflow:hidden;border-radius:clamp(14px,2vw,26px);
 background:#fff;box-shadow:0 12px 45px #071b2426;
}
.lighting-product{
 position:absolute;left:50%;bottom:0;width:min(43vw,660px);height:100%;
 display:flex;align-items:center;justify-content:center;
 transform:translateX(calc(-50% + var(--offset) * clamp(210px,32vw,550px))) scale(.61);
 opacity:0;visibility:hidden;filter:saturate(.7);outline-offset:-4px;
}
.lighting-ready .lighting-product{transition:transform .56s cubic-bezier(.19,.82,.29,1),filter .42s,opacity .42s,visibility .42s;}
.lighting-ready .lighting-track{animation:lighting-arrival .65s ease-out both}
@keyframes lighting-arrival{from{opacity:.4;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
.lighting-product[data-visible="true"]{visibility:visible;opacity:.64}
.lighting-product[data-active="true"]{z-index:3;transform:translateX(-50%);opacity:1;filter:none}
.lighting-product img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;pointer-events:none;object-fit:contain}
.lighting-controls{
 display:flex;align-items:center;justify-content:center;gap:11px;padding:5px 0 14px;
 color:#122a2e;
}
.lighting-controls button{
 display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:8px;background:#f1f7efdd;color:#142f31;
 font-size:20px;line-height:1;border:1px solid #e1efdf;
}
.lighting-controls button:hover{background:#fff}
.lighting-controls [data-lighting-play]{font-size:13px}
.lighting-counter{min-width:61px;text-align:center;font-variant-numeric:tabular-nums;font-size:13px;font-weight:750;color:#edf8f4;text-shadow:0 1px 5px #131c23}
.lighting-readout{
 display:grid;grid-template-columns:minmax(205px,1fr) minmax(0,2fr) auto;align-items:center;gap:18px;
 padding:16px 20px;background:#eff6edeb;color:#173439;border-radius:3px 3px 15px 15px;border-top:3px solid #629f92;
}
.lighting-readout h3{font-size:clamp(17px,1.85vw,25px);line-height:1.12;margin:3px 0 0}
.lighting-code{display:block;font-size:12px;font-weight:750;color:#365c5b}
.lighting-readout dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(98px,100%),1fr));gap:8px;margin:0}
.lighting-readout dl div{border-inline-start:1px solid #31565a40;padding-inline-start:10px}
.lighting-readout dt{font-size:11px;color:#314f54;line-height:1.3}
.lighting-readout dd{margin:4px 0 0;font-size:14px;font-weight:750;line-height:1.25}
.lighting-readout a{display:grid;place-items:center;min-height:44px;padding:8px 13px;color:#193638;background:#cee7d9;border-radius:7px;font-size:13px;font-weight:750;text-align:center}
.lighting-readout a:hover{background:#b9d9c6}
.lighting-readout a:focus-visible,.lighting-controls button:focus-visible{outline-color:#163b3a}
@media(max-width:780px){
 .lighting-room{grid-template-rows:auto minmax(238px,1fr) auto auto;padding:123px 16px 16px}
 .lighting-product{width:70vw;height:100%;transform:translateX(calc(-50% + var(--offset) * 52vw)) scale(.62)}
 .lighting-readout{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px}
 .lighting-readout dl{grid-column:1/-1;grid-row:2}
 .lighting-readout a{max-width:138px}
}
@media(max-width:420px){
 .lighting-room{grid-template-rows:auto minmax(203px,1fr) auto auto}
 .lighting-readout dl{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
 .lighting-showroom,.lighting-ready .lighting-product{transition:none}
 .lighting-ready .lighting-track{animation:none}
}
