/* shared/site/options.css — the top "site options" bar, the background layer, and the studio.
 *
 * Self-contained (no fonts/CDNs). Loaded only by the hub page. The background layer sits behind the
 * page content; the content wrappers get z-index 1 so they stay selectable above it.
 */

#site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#site-bg canvas,
#site-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Content wrappers sit above the background. The header keeps its own sticky positioning and
   z-index from the hub page — do NOT override position here or the sticky header breaks. */
main,
footer { position: relative; z-index: 1; }

/* ---- the options bar ---- */
#site-options {
  position: relative;
  z-index: 3;
  background: #040c12;
  border-bottom: 1px solid #16232e;
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #b9c7d4;
}
#site-options .so-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 22px;
}
#site-options .so-title {
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  color: #6f8798;
}
#site-options .so-field { display: flex; align-items: center; gap: 7px; }
#site-options label { color: #6f8798; font-size: 12px; }
#site-options select,
#site-options input[type=number] {
  background: #0b1822;
  color: #e6eef6;
  border: 1px solid #24333f;
  border-radius: 8px;
  padding: 5px 8px;
  font: inherit;
  font-size: 12.5px;
}
#site-options select:focus-visible,
#site-options button:focus-visible,
#site-options input:focus-visible { outline: 2px solid #4cc2ff; outline-offset: 2px; }
#site-options button {
  background: #10222e;
  color: #e6eef6;
  border: 1px solid #24333f;
  border-radius: 8px;
  padding: 5px 11px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
#site-options button:hover { border-color: #4cc2ff; }
#site-options button.primary { background: #0d3a52; border-color: #1d6b8f; }
#site-options .so-note { color: #5d7484; font-size: 11.5px; margin-left: auto; }
#site-options .so-studio {
  display: none;
  border-top: 1px solid #16232e;
  background: #061019;
}
#site-options .so-studio.open { display: block; }
#site-options .so-studio .so-wrap { gap: 12px 18px; align-items: flex-end; }
#site-options .so-control { display: grid; gap: 4px; }
#site-options .so-control span { color: #6f8798; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
#site-options input[type=range] { accent-color: #4cc2ff; width: 140px; }
#site-options .so-actions { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 760px) {
  #site-options .so-wrap { padding: 8px 14px; gap: 10px; }
  #site-options .so-note { display: none; }
}
