/* Rebellion Gateway v0.14 – Holo-Choreografie (siehe holo_choreo.js). Baut auf vorhandenen Regeln auf, ersetzt keine. */

/* Kugel rückt zur Seite: dieselbe Transformation und dieselbe Kurve wie body.hub-open (styles.css) */
body.holo-busy #orb{transform:translateX(-8%) scale(.84);opacity:.75;transition:transform .75s cubic-bezier(.2,.9,.2,1),opacity .6s}
/* Handy: kein Platz seitlich – die Kugel verkleinert sich nach oben */
@media(max-width:780px){body.holo-busy #orb{transform:translateY(-14%) scale(.66);opacity:.7}}

/* gestaffelte Einblendung: Rahmen baut sich auf, dann der Inhalt; Versatz --mi kommt aus holo_choreo.js (60 ms je Element, höchstens 400 ms) */
.scene-win.holo-in{animation:holoFrame .26s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--mi,0ms)}
.scene-win.holo-in .scene-body{animation:holoBody .24s ease-out both;animation-delay:calc(var(--mi,0ms) + .12s)}
.holo-w.opening{animation-delay:calc(.3s + var(--mi,0ms))}
@keyframes holoFrame{from{opacity:0;clip-path:inset(48% 0 48% 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes holoBody{from{opacity:0}to{opacity:1}}

/* Beziehung im Fluss: style:'flow' (Enum) – die wandernde Strichlinie zeichnet scenes.js per <animate>, hier nur die Linienform */
.scene-edge.flow{stroke-width:2.6}

/* Hervorhebung ruhig pulsieren lassen: gesetzte Hervorhebung (hl) und die Sprechmarke (say-hl) */
.scene-edge.hl,.scene-node.hl circle,.scene-card.hl,.scene-edge.say-hl,.scene-node.say-hl circle,.scene-node.say-hl rect,.scene-card.say-hl{animation:holoPulse 2.4s ease-in-out infinite}
.scene-edge.say-hl{stroke-width:4.2;filter:drop-shadow(0 0 7px var(--sc,rgba(var(--h,97,202,255),.95)))}
.scene-node.say-hl circle,.scene-node.say-hl rect{stroke-width:4.6;filter:drop-shadow(0 0 12px var(--sc,rgba(var(--h,97,202,255),.95)))}
.scene-card.say-hl{box-shadow:0 0 0 2px var(--sc,rgba(var(--h,97,202,255),.9)),0 0 18px var(--sc,rgba(var(--h,97,202,255),.6))}
@keyframes holoPulse{50%{opacity:.62}}

/* Vorlesen-Knopf am Element */
.holo-read{font-size:11px}

@media (prefers-reduced-motion:reduce){
  body.holo-busy #orb{transition:none!important}
  .scene-win.holo-in,.scene-win.holo-in .scene-body,.holo-w.opening{animation-delay:0s!important}
  .scene-win.holo-in,.scene-win.holo-in .scene-body{animation:none!important}
  .scene-edge.hl,.scene-node.hl circle,.scene-card.hl,.scene-edge.say-hl,.scene-node.say-hl circle,.scene-node.say-hl rect,.scene-card.say-hl{animation:none!important}
}
