/* Text under the 3D sculpture about the track that is loaded. */
.lab-notes {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}
.lab-notes-title { font-size: 1rem; letter-spacing: 1px; margin-bottom: 10px; }
.lab-notes-text { font-size: 0.8rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 10px; }
.lab-notes-text:last-child { margin-bottom: 0; }

/* Credit line under the sculpture (and under the track notes, when they are shown) */
.lab-credit { margin: 18px 0 0; font-size: 0.8rem; line-height: 1.7; color: var(--text-muted); font-style: italic; }

/* Score under the sculpture (js/lab-score.js): dark notation on a light card, scrolls inside its own box */
.lab-score {
  margin-top: 22px;
  border-radius: 12px;
  background: #f6f2ea;
  color: #1a1a1a;
  overflow: hidden;
}
.lab-score-view {
  overflow: hidden;            /* js/lab-score.js sets the height to fit the music and slides the line inside it */
  font-size: 0.8rem;
  position: relative;
  padding: 0;
}
.lab-score-paper {             /* the whole piece on one line; moved with a transform while the music plays */
  position: relative;
  width: 100%;
  will-change: transform;
}
.lab-score-paper svg { display: block; max-width: none; }
.lab-score-playhead {          /* the orange line marking what is being heard */
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 3px;
  background: rgba(208, 138, 44, 0.75);
  pointer-events: none;
  will-change: transform;
}

/* the show/hide score button next to Play / Mute / Vol (an icon, so it needs less side padding) */
.rwmp-ui .rwmp-score-toggle { padding: 0.35em 0.7em; line-height: 0; }
.rwmp-ui .rwmp-score-toggle svg { display: block; width: 1.5em; height: 1.5em; }

/* Sculpture / Particles tabs above the player (js/lab-particles.js) */
.lab-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.lab-tab {
  font-family: var(--font-family);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lab-tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.2); border-color: #ffffff; }
.lab-tab:hover, .lab-tab:focus-visible { background: #ffffff; color: #000000; outline: none; }

/* the particle view covers the sculpture inside the player; the controls stay on top */
#rwmp .lab-particles { position: absolute; inset: 0; z-index: 255; background: linear-gradient(#1f190e, #40341d 55%, #6d5b32); }   /* same colours as the scene, so it is not black while loading */
#rwmp .lab-particles[hidden] { display: none; }
#rwmp #expand-toggle { z-index: 257; }
