/* LAUNCH PAD scene (42 Dugg). Layer boxes live in lp-layout.css (generated). */
#room[hidden],#lp[hidden]{display:none!important}
#lp{position:fixed;inset:0;height:100vh;height:100svh;overflow:hidden;touch-action:none;cursor:grab;isolation:isolate;background:#04060b;color:#f3ece4}
#lp.dragging{cursor:grabbing}
#lp[data-embed]{position:relative;inset:auto;width:100%;touch-action:pan-y}
#lp:focus-visible{outline:2px solid #ffd3ac;outline-offset:-4px}
#lp-world{position:absolute;top:50%;left:0;translate:0 -50%;will-change:transform;user-select:none;-webkit-user-select:none;--skew:0rad;--jx:0px;--cx:0px;--dx:0px}
#lp-world img,#lp-world video{position:absolute;display:block;pointer-events:none;-webkit-user-drag:none}
.lp-bg{left:0;top:0;width:100%;height:100%}
.lp-g{position:absolute;inset:0;pointer-events:none}
.lp-floor{transform:skewX(var(--skew));transform-origin:50% 0;will-change:transform}
/* groups must NOT transform (that would isolate the screen-blended light passes); each child moves itself */
.lp-jet-g>*{translate:var(--jx) 0}
.lp-cars-g>*{translate:var(--cx) 0}
.lp-dancer-g>*{translate:var(--dx) 0}
/* dancer: fictional character, Codex frames played as a stepped stop-motion loop (~8 fps) */
.lp-dancer,.lp-dancer-refl{position:absolute;background:url("assets/lp/dancer.webp") 0 0/var(--dn,900%) 100% no-repeat;animation:lp-dance var(--dt,1.125s) steps(var(--dsteps,9),jump-none) infinite,lp-snap .5s steps(1,end) infinite;pointer-events:none}
.lp-dancer{filter:drop-shadow(0 0 1px #000a) brightness(.86) contrast(1.06) saturate(.92)}
.lp-dancer-refl{transform:scaleY(-1);opacity:.26;filter:blur(1.4px) saturate(.8);-webkit-mask-image:linear-gradient(0deg,transparent 30%,#000);mask-image:linear-gradient(0deg,transparent 30%,#000)}
.lp-dancer-shadow{position:absolute;background:radial-gradient(closest-side,#000c,#0006 55%,transparent);mix-blend-mode:multiply;pointer-events:none}
.lp-fx-dance{opacity:.95}
@keyframes lp-dance{from{background-position-x:0%}to{background-position-x:100%}}
@keyframes lp-snap{0%{translate:var(--dx) 0}50%{translate:calc(var(--dx) + .6px) -.4px}}
.lp-fx{mix-blend-mode:screen;object-fit:fill;transition:opacity .7s ease}
/* switchable light passes */
.lp-fx-haze,.lp-fx-run,.lp-fx-cars,.lp-fx-eng{opacity:0}
.floods .lp-fx-haze{opacity:.95;animation:lp-breathe 7s ease-in-out infinite}
.runway .lp-fx-run{opacity:1}
.headlights .lp-fx-cars{opacity:1;animation:lp-hl-on .9s steps(1,end) both}
.engines .lp-fx-eng{opacity:1;transition-duration:4s}
@keyframes lp-breathe{50%{opacity:.75}}
@keyframes lp-hl-on{0%{opacity:0}12%{opacity:.9}20%{opacity:.2}34%,100%{opacity:1}}
/* heat shimmer: the plate behind the exhaust, pushed through a moving turbulence displacement */
.lp-heat{position:absolute;background-image:url("assets/lp/bg.webp");background-repeat:no-repeat;filter:url(#lp-heatf);opacity:0;transition:opacity 3s ease;pointer-events:none;
 -webkit-mask-image:radial-gradient(ellipse 60% 55% at 72% 52%,#000 35%,transparent 72%);mask-image:radial-gradient(ellipse 60% 55% at 72% 52%,#000 35%,transparent 72%)}
.engines .lp-heat{opacity:1}
.engines .lp-jet{animation:lp-idle .09s linear infinite}
@keyframes lp-idle{50%{transform:translateY(.35px)}}
/* hotspots reuse the garage .hotspot look; these sit in plate fractions */
#lp .hotspot{pointer-events:auto}
#lp-floods{left:7.4%;top:30%}
#lp-engines{left:24.6%;top:25.5%}
#lp-runway{left:22%;top:47.5%}
#lp-headlights{left:80.5%;top:43.2%}
/* HUD + bottom */
.lp-shade{position:absolute;inset:0;pointer-events:none;z-index:3;background:linear-gradient(180deg,#02040aa8,transparent 24%,transparent 70%,#030509e6 99%)}
#lp .hud{z-index:5}
.lp-title{display:block;font:800 10px/1.3 ui-monospace,Menlo,monospace;letter-spacing:.16em;color:#ffcfa8;text-shadow:0 2px 6px #000}
.lp-bottom{position:absolute;z-index:5;width:min(460px,calc(100% - 36px));left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);pointer-events:none}
.lp-bottom>p{text-align:center;font:10px ui-monospace,Menlo,monospace;letter-spacing:.13em;text-transform:uppercase;margin:0 0 10px;color:#f9f0e9;text-shadow:0 2px 4px #000}
.lp-bottom .labels span{font:800 9px ui-monospace,Menlo,monospace;letter-spacing:.06em;color:#f3c3a4;text-shadow:0 2px 4px #000;padding:14px 0}
/* scene switch (both scenes) */
.scenes{display:flex;gap:6px;justify-content:center;margin:0 0 10px;pointer-events:auto}
.scenes button,.scenes a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 13px;border:1px solid #af825b;border-radius:999px;background:#141211e6;color:#fce6cf;font:800 10px ui-monospace,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;text-decoration:none;box-shadow:0 4px 14px #000a}
.scenes button[aria-current=true]{background:#ff9a58;border-color:#ffb98a;color:#1c0e05}
.scenes svg{width:14px;height:14px;flex:none}
@media(max-width:550px){.lp-title{font-size:9px}.scenes button,.scenes a{min-height:44px;padding:6px 11px}}
@media(prefers-reduced-motion:reduce){.lp-dancer,.lp-dancer-refl{animation:none}.lp-fx,.lp-heat{transition:none!important;animation:none!important}.engines .lp-jet{animation:none}}
