/* Warm paper and small, dimensional accents keep the notes distinct. */
.chapter-notes.notes-orbs-ready {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 75%, #ffc69a66, transparent 58%),
    linear-gradient(118deg, #fff7ec 0%, #ffe9d7 42%, #ffdbbd 78%, #fff0e2 100%);
  border-color: #edc2a0;
}

.notes-orbs-ready > .content-notes { position: relative; z-index: 1; }
.notes-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.notes-orb {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 29% 24%, #fff1cc 0%, #ffd096 19%, #ff963f 45%, #ff621b 70%, #c6370b 100%);
  box-shadow: inset -9px -14px 23px #a52c0826, inset 3px 4px 12px #fff7d847, 0 12px 28px #aa460b20;
  transform: translate3d(var(--orb-x, 0px), var(--orb-y, 0px), 0) scale(var(--orb-scale, 1));
  transform-origin: center;
}
.notes-orb:nth-child(1) { width: 150px; left: 55%; top: -68px; }
.notes-orb:nth-child(2) { width: 190px; right: -138px; top: 33%; }
.notes-orb:nth-child(3) { width: 112px; left: 24%; bottom: -55px; }

@media (max-width: 850px) and (min-width: 601px) {
  .notes-orb:nth-child(1) { width: 140px; left: 55%; top: -84px; }
  .notes-orb:nth-child(2) { width: 150px; right: -113px; }
  .notes-orb:nth-child(3) { width: 94px; bottom: -61px; }
}
@media (max-width: 600px) {
  .chapter-notes.notes-orbs-ready {
    background: linear-gradient(145deg, #fff4e7, #ffe3cc 51%, #ffd8b9 100%);
  }
  .notes-orb:nth-child(1) { width: 110px; left: -88px; top: 83px; }
  .notes-orb:nth-child(2) { width: 120px; right: -100px; top: 46%; }
  .notes-orb:nth-child(3) { width: 88px; left: auto; right: 16px; bottom: -65px; }
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .notes-orb { transform: none; }
}
