/* Phosphene WebGL background — site-wide. */

html { background-color: #06151a; }

/* Let the fixed canvas show through the theme's solid body/page background. */
body,
#qodef-page-wrapper,
#qodef-page-inner,
#qodef-page-footer,
#qodef-page-footer-top-area,
#qodef-page-footer-bottom-area,
#qodef-page-mobile-header,
#qodef-page-mobile-header-inner { background-color: transparent !important; }

/* Expanded mobile menu: translucent + blur so the animation shows but links stay legible. */
.qodef-mobile-header-navigation {
  background-color: rgba(6, 21, 26, 0.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  pointer-events: none;
}

/* --- Admin-only tuning panel ---------------------------------------------- */
.phosphene-panel {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 9999;
  width: min(290px, calc(100vw - 2rem));
  border: 1px solid rgba(188,221,226,0.18);
  border-radius: 14px;
  background: rgba(6,21,26,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: #dfe8e8;
}
.phosphene-panel summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #eaf4f5;
  user-select: none;
}
.phosphene-panel summary::-webkit-details-marker { display: none; }
.phosphene-panel summary .chev { transition: transform .25s; opacity: 0.6; }
.phosphene-panel[open] summary .chev { transform: rotate(180deg); }
.phosphene-panel .body {
  padding: 0.2rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: min(60vh, 460px);
  overflow-y: auto;
}
.phosphene-panel .grp {
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #bcdde2;
  opacity: 0.55;
  margin-top: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(188,221,226,0.1);
}
.phosphene-panel .grp:first-child { margin-top: 0; }
.phosphene-panel .row { display: flex; flex-direction: column; gap: 0.3rem; }
.phosphene-panel .row .top {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bcdde2;
}
.phosphene-panel .row .val { color: #eaf4f5; font-variant-numeric: tabular-nums; }
.phosphene-panel input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(188,221,226,0.35);
  border-radius: 2px;
  cursor: pointer;
}
.phosphene-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #eaf4f5;
  border: none;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.phosphene-panel input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #eaf4f5;
  border: none;
}
.phosphene-panel select {
  width: 100%;
  background: rgba(6,21,26,0.6);
  color: #eaf4f5;
  border: 1px solid rgba(188,221,226,0.25);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.phosphene-panel option { background: #0a2026; color: #eaf4f5; }
.phosphene-panel .reset {
  margin-top: 0.6rem;
  align-self: flex-start;
  background: none;
  border: 1px solid rgba(188,221,226,0.25);
  color: #bcdde2;
  font: inherit;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.phosphene-panel .reset:hover { color: #eaf4f5; border-color: #eaf4f5; }
