.prostor-liquid-sample {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 160px;
  background: #0c0c0c;
  pointer-events: none;
}

.prostor-liquid-panel {
  position: fixed;
  z-index: 49;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.prostor-liquid-media {
  position: fixed;
  z-index: 1;
  inset: 0 0 auto;
  width: 100%;
  height: 140px;
  opacity: 0;
  pointer-events: none;
}

main:has(> .prostor-liquid-panel) {
  isolation: isolate;
}

/* Keep section captures above the shader's negative-z background sample.
   The library sorts positioned children separately from static children. */
main:has(> .prostor-liquid-panel) > section,
main:has(> .prostor-liquid-panel) > footer {
  position: relative;
}

.prostor-liquid-panel[data-ready] {
  opacity: 1;
}

main:has(> .prostor-liquid-panel[data-ready]) > header.fixed > .glass-highlight:first-child {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
}

main:has(> .prostor-liquid-panel[data-ready]) > header.fixed > .glass-highlight:first-child::before {
  opacity: 0;
}

main:has(> .prostor-liquid-panel[data-ready]) > header.fixed > .glass-highlight:first-child nav a {
  color: #f5f5f5;
  text-shadow: 0 1px 5px #000b;
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .prostor-liquid-panel[data-ready] {
    visibility: hidden;
  }

  main:has(> .prostor-liquid-panel[data-ready]) > header.fixed > .glass-highlight:first-child {
    background: #181818;
    border-color: #ffffff32;
  }
}
