/* Finishing layer — small, reversible touches that ride on top of the
   bundle without fighting the choreography driver (which owns transform,
   opacity and filter inline). Only shadow, border and colour are touched. */

/* ---------- pointer light ---------- */
.pl-spot {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity 1s var(--ease, ease);
  background: radial-gradient(circle 280px at var(--px, 50%) var(--py, 42%),
    rgba(196, 181, 253, .09), rgba(139, 92, 246, .04) 45%, transparent 72%);
  mix-blend-mode: screen;
}
html.pl-has-pointer .pl-spot { opacity: 1; }

/* ---------- card response ---------- */
.cardx { transition: border-color .4s var(--ease, ease), box-shadow .4s var(--ease, ease); }
.cardx:hover {
  border-color: rgba(196, 181, 253, .45);
  box-shadow: 0 34px 80px -26px #000, 0 0 0 1px rgba(196, 181, 253, .16) inset;
}
.cardx--hot:hover { box-shadow: 0 34px 90px -26px #000, 0 0 34px -6px rgba(139, 92, 246, .55) inset; }
.panelx { transition: border-color .4s var(--ease, ease), box-shadow .4s var(--ease, ease); }
.panelx:hover {
  border-color: rgba(196, 181, 253, .42);
  box-shadow: 0 40px 90px -30px #000, 0 0 0 1px rgba(196, 181, 253, .14) inset;
}

/* ---------- gallery position ---------- */
.pl-gal {
  position: fixed; z-index: 44; bottom: 3.4vh; left: 50%; translate: -50% 0;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid rgba(243, 237, 227, .1); background: rgba(9, 6, 15, .4);
  backdrop-filter: blur(10px);
  font-size: .58rem; letter-spacing: .24em; color: rgba(243, 237, 227, .34);
  direction: ltr; opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease, ease);
}
body[data-jm-scene="5"] .pl-gal { opacity: 1; }
.pl-gal b { font-size: .82rem; font-weight: 600; letter-spacing: .1em; color: rgba(243, 237, 227, .92); }
.pl-gal i {
  display: block; width: 34px; height: 1px;
  background: linear-gradient(90deg, rgba(196, 181, 253, .7), rgba(196, 181, 253, .1));
}

@media (max-width: 760px) {
  .pl-gal { display: none; }
  .pl-spot { display: none; }
}
