/* Eclipse Vault — globally fixed back-to-top button. */
#ev-back-to-top {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 58px;
  height: 64px;
  margin: 0;
  padding: 10px 6px 8px;
  border: 1px solid rgba(183, 117, 255, .62);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(35, 21, 55, .96), rgba(6, 6, 13, .97) 65%);
  color: #d9b4ff;
  box-shadow:
    inset 0 1px 0 rgba(210, 167, 255, .23),
    inset 0 0 16px rgba(155, 77, 255, .10),
    0 0 18px rgba(155, 77, 255, .25),
    0 10px 28px rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s ease, border-color .25s ease,
              background .25s ease, box-shadow .25s ease;
}
#ev-back-to-top, #ev-back-to-top * { box-sizing: border-box; }
#ev-back-to-top::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 17px;
  right: 17px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c594ff, transparent);
  opacity: .85;
  pointer-events: none;
}
#ev-back-to-top svg {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #d9b4ff;
  filter: drop-shadow(0 0 5px rgba(173, 98, 255, .5));
}
#ev-back-to-top span {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .23em;
  line-height: 1;
  padding-left: .23em;
  color: #ba8cec;
}
@media (hover: hover) {
  #ev-back-to-top:hover {
    transform: translateY(-4px);
    border-color: #c594ff;
    background: linear-gradient(145deg, rgba(57, 28, 89, .98), rgba(9, 7, 19, .98) 65%);
    box-shadow:
      inset 0 1px 0 rgba(220, 185, 255, .3),
      inset 0 0 18px rgba(155, 77, 255, .16),
      0 0 28px rgba(155, 77, 255, .47),
      0 14px 30px rgba(0, 0, 0, .48);
  }
}
#ev-back-to-top:active { transform: translateY(-1px); }
#ev-back-to-top:focus-visible {
  outline: 2px solid #e3c3ff;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  #ev-back-to-top { right: 14px; bottom: 18px; width: 52px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  #ev-back-to-top { transition: none; }
}
