/* Shared by the interactive editor and the offscreen MP4 renderer. */
.score-notes-overlay { position:absolute;inset:0;z-index:5;pointer-events:none;overflow:visible; }
.score-glitter-overlay { position:absolute;inset:0;z-index:6;pointer-events:none;overflow:hidden; }
/* Individual translate/scale properties compose with VexFlow's SVG transforms. */
.score-note-moving {transform-box:fill-box;transform-origin:center center;}
.score-glowing { filter:drop-shadow(0 0 var(--score-glow-blur, 3px) var(--score-note-active)); }
.score-glowing path, .score-glowing ellipse, .score-glowing circle,
.score-glowing use { fill:var(--score-note-active) !important; stroke:var(--score-note-active) !important; }
.note-star,.ambient-star{position:absolute;width:5px;height:5px;background:var(--score-accent);border-radius:1px;box-shadow:0 0 6px 1px var(--score-accent);pointer-events:none;}
.note-star:before,.ambient-star:before{content:"";position:absolute;left:2px;top:-4px;width:1px;height:13px;background:var(--score-accent);}
.ambient-star{width:3px;height:3px;transform:rotate(45deg)}
.ambient-star:before{left:1px;top:-3px;height:9px;}
/* Backgrounds are stationary, below the engraving, with separately adjustable alpha. */
.score-background {position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.score-photo,.score-texture{position:absolute;inset:0;pointer-events:none}
.score-photo{background-position:center center;background-repeat:no-repeat}
.score-texture-canvas{display:block;width:100%;height:100%}
#osmdContainer{position:relative;z-index:1;background:transparent!important}
.score-glitter-overlay{z-index:7}
.note-star,.ambient-star{background:var(--score-glow);box-shadow:0 0 6px 1px var(--score-glow)}
.note-star:before,.ambient-star:before{background:var(--score-glow)}

/* Note glow is anchored to the engraved head; keep the added trail restrained. */
.note-trail{position:absolute;height:2.1px;border-radius:20px;background:linear-gradient(90deg,transparent,var(--score-glow),transparent);filter:drop-shadow(0 0 4px var(--score-glow));pointer-events:none;mix-blend-mode:screen}
#scoreViewport {isolation:isolate}

/* v0.14 smooth playback cursor. The native OSMD cursor is hidden after
   collecting graphical positions; this element is frame-time deterministic. */
.score-playback-cursor {
  position:absolute; z-index:6; width:var(--playback-cursor-width,3px); border-radius:3px;
  background:var(--playback-cursor-color,#2ec9d3);
  box-shadow:0 0 var(--playback-cursor-glow,7px) var(--playback-cursor-color,#2ec9d3);
  opacity:.72; pointer-events:none; transform:translateX(-50%);
}
.score-playback-cursor[hidden] {display:none!important}
