/* Keep the lights above the body background and behind the page content. */
body:has(> #lm-disco){isolation:isolate}
#lm-disco{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;opacity:var(--d-o,0);
 filter:hue-rotate(var(--d-h,0deg));transition:opacity 1.6s ease,filter 3s ease;--d-k:1;
 --d-gf:3s;--d-gs:3.4s;--d-kurve:cubic-bezier(.45,.05,.2,1)}
html.light #lm-disco{--d-k:.8}
#lm-disco.lm-disco-puls{--d-k:1.25}
html.light #lm-disco.lm-disco-puls{--d-k:.95}
.lm-disco-fleck{position:absolute;left:0;top:0;width:72vmax;height:72vmax;margin:-36vmax 0 0 -36vmax;border-radius:50%;
 background:radial-gradient(circle,var(--f) 0%,transparent 62%);opacity:calc(var(--o,0) * var(--d-k));
 transform:translate(var(--x,50vw),var(--y,50vh)) scale(var(--s,1));transition:transform var(--d-gf) var(--d-kurve),opacity 3s ease}
.lm-disco-strahl{position:absolute;left:0;top:-12vh;width:44vmax;height:140vh;margin-left:-22vmax;transform-origin:50% 0;
 opacity:calc(var(--o,0) * var(--d-k) * .75);transform:translateX(var(--x,50vw)) rotate(var(--r,0deg));
 transition:transform var(--d-gs) var(--d-kurve),opacity 3s ease}
.lm-disco-strahl::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,var(--f),transparent 82%);
 clip-path:polygon(46% 0,54% 0,100% 100%,0 100%)}
.lm-disco-fleck[data-i="0"]{--f:#E8943A}.lm-disco-fleck[data-i="1"]{--f:#ec4899}.lm-disco-fleck[data-i="2"]{--f:#8b5cf6}
.lm-disco-strahl[data-i="0"]{--f:#22d3ee}.lm-disco-strahl[data-i="1"]{--f:#fbbf24}
html.light .lm-disco-fleck[data-i="0"]{--f:#C2611D}html.light .lm-disco-fleck[data-i="1"]{--f:#be185d}html.light .lm-disco-fleck[data-i="2"]{--f:#6d28d9}
html.light .lm-disco-strahl[data-i="0"]{--f:#0e7490}html.light .lm-disco-strahl[data-i="1"]{--f:#b45309}
#lm-disco.lm-disco-sofort,#lm-disco.lm-disco-sofort *{transition:none!important}
/* Im Takt (15.11.2026): laeuft Musik im Player, atmen die Farbkegel leicht im Tempo des Tracks (BPM aus dem Katalog,
   sonst 124) und die Strahlen blitzen auf jedem Schlag auf - versetzt um einen halben Schlag. Bewusst ohne Web-Audio-
   Analyse: die wuerde den Ton umleiten und kann am Handy die Wiedergabe bei gesperrtem Bildschirm stoppen. 'scale' ist
   unabhaengig von transform - das Wandern bleibt. Die Strahlen werden nicht skaliert (das sah nach Wackeln aus). */
.lm-disco-puls .lm-disco-fleck{animation:lm-disco-beat var(--d-takt,.48s) ease-in-out infinite}
.lm-disco-puls .lm-disco-fleck[data-i="1"]{animation-delay:calc(var(--d-takt,.48s) / 2)}
@keyframes lm-disco-beat{0%,100%{scale:1}30%{scale:1.05}}
.lm-disco-puls .lm-disco-strahl::before{animation:lm-disco-blitz var(--d-takt,.48s) ease-out infinite}
.lm-disco-puls .lm-disco-strahl[data-i="1"]::before{animation-delay:calc(var(--d-takt,.48s) / 2)}
@keyframes lm-disco-blitz{0%{opacity:.5}12%{opacity:1}100%{opacity:.5}}
/* Party (15.11.2026, Easter Egg: "disco" tippen, www/js/buehne.js): kraeftiger, Schritte im halben Takt, Strahlen
   blitzen doppelt so schnell - auch ohne Musik und auf der Startseite; nach einigen Sekunden wieder normal. */
#lm-disco.lm-disco-party{--d-k:2.3}
html.light #lm-disco.lm-disco-party{--d-k:1.5}
.lm-disco-party .lm-disco-fleck{animation:lm-disco-beat var(--d-takt,.48s) ease-in-out infinite}
.lm-disco-party .lm-disco-strahl::before{animation:lm-disco-blitz calc(var(--d-takt,.48s) / 2) ease-out infinite}
/* Im Rhythmus des Lieds (15.11.2026, Lukas: "zum Rhythmus des Lieds bewegen"): ist das Spektrum des Players an (Standard),
   liest das Skript dessen Analyser mit - erkannte Schlaege (Bass) loesen die Schritte aus, die Strahlen blitzen auf
   jedem Schlag (--d-blitz), die Farbkegel atmen mit dem Basspegel (scale). Die Takt-Animationen ruhen dann. */
.lm-disco-rhythmus .lm-disco-fleck{animation:none!important}
.lm-disco-rhythmus .lm-disco-strahl::before{animation:none!important;opacity:var(--d-blitz,.6)}
/* Release-Seiten (15.11.2026): Lichtschein hinter dem Cover in dessen Farbe - im hellen Design schwaecher. */
html.light [data-lm-glow]{opacity:.32!important}
/* "Laeuft gerade" (15.11.2026): am spielenden Play-Knopf ein kleiner Equalizer statt des Pause-Symbols;
   beim Darueberfahren wieder Pause. */
.lm-play[aria-pressed="true"]:not(:hover)>.lm-ico-pause{display:none}
.lm-play[aria-pressed="true"]:not(:hover)::after{content:"";width:40%;height:36%;
 background:linear-gradient(currentColor,currentColor) 0 100%/22% 45% no-repeat,linear-gradient(currentColor,currentColor) 50% 100%/22% 100% no-repeat,linear-gradient(currentColor,currentColor) 100% 100%/22% 65% no-repeat;
 animation:lm-eq .9s ease-in-out infinite}
@keyframes lm-eq{0%,100%{background-size:22% 45%,22% 100%,22% 65%}33%{background-size:22% 100%,22% 50%,22% 90%}66%{background-size:22% 65%,22% 80%,22% 35%}}
/* Seitenwechsel (15.11.2026): weiches Ueberblenden per View Transitions API (www/js/app.js). */
::view-transition-old(root),::view-transition-new(root){animation-duration:.26s}
@media (prefers-reduced-motion:reduce){#lm-disco,#lm-disco *,#lm-disco *::before{transition:none!important;animation:none!important}.lm-play::after{animation:none!important}}
html.lm-samsung #lm-disco{display:none}
@media print{#lm-disco{display:none}}
