/* THE PRISM — navigation chrome. White light in, spectrum out. */
#prism { position: fixed; right: 18px; bottom: 18px; z-index: 70; }
#pr-veil {
  position: fixed; inset: 0; z-index: 65; background: rgba(3,3,6,.62);
  backdrop-filter: blur(3px); opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#pr-veil.open { opacity: 1; pointer-events: auto; }

#pr-btn {
  position: relative; width: 116px; height: 116px; padding: 0;
  background: none; border: none; cursor: pointer; display: block;
}
#pr-btn svg { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.7)); }
#pr-label {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  font: bold 13px Consolas, monospace; letter-spacing: .3em; color: #7e7b74;
}
#pr-btn:hover #pr-label { color: var(--spec, #39ff14); }

/* incoming beam flows; exit fan idles dim, blooms on hover/open */
#pr-in { animation: prflow .9s linear infinite; }
@keyframes prflow { to { stroke-dashoffset: -9; } }
#pr-fan line { opacity: .35; transition: opacity .35s; }
#pr-btn:hover #pr-fan line, #prism.open #pr-fan line { opacity: 1; }
#prism.open #pr-btn svg { filter: drop-shadow(0 0 22px rgba(255,255,255,.18)); }

/* spectral beams out to the menu items */
#pr-beams {
  position: absolute; right: 58px; bottom: 58px; overflow: visible;
  pointer-events: none;
}
#pr-beams line {
  stroke-width: 1.6; stroke-dasharray: 7 5; opacity: 0;
  transition: opacity .4s ease;
  animation: prflow 0.8s linear infinite;
}
#prism.open #pr-beams line { opacity: .85; }

/* the projected destinations */
#pr-menu { position: absolute; right: 58px; bottom: 58px; }
.pr-item {
  position: absolute; right: -34px; bottom: -16px;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 8px; white-space: nowrap;
  background: rgba(8,8,13,.88); border: 1px solid #26262e;
  color: #e9e7e2; text-decoration: none;
  font: 15px Consolas, monospace; letter-spacing: .12em;
  opacity: 0; transform: translate(0,0) scale(.15);
  transform-origin: bottom right;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s ease,
              border-color .25s, background .25s;
  pointer-events: none;
}
#prism.open .pr-item { pointer-events: auto; }
.pr-item:hover { border-color: #e9e7e2; background: rgba(16,16,26,.95); }
.pr-item .pr-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.pr-item em {
  font-style: normal; color: #7e7b74; font-size: 12px; letter-spacing: .08em;
}
.pr-star { border-color: rgba(233,231,226,.5); }
.pr-star span { color: #fff; }

@media (max-width: 768px) {
  #pr-btn { width: 94px; height: 94px; }
  #pr-beams { right: 47px; bottom: 47px; }
  #pr-menu { right: 47px; bottom: 47px; }
  .pr-item em { display: none; }
}
