/* The cabinet's background stack. Its paint is shared in brand-background.css
   and light-theme.css; the page content sits above the canvas as #app does. */
body > .app-bg {
  position: fixed;
  inset: 0 0 auto;
  height: var(--app-h, 100%);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.app-bg__wall { position: absolute; inset: 0 0 -120px; }
.app-bg__wall i { position: absolute; inset: 0; }

canvas.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  animation: particlesIn 1.8s ease-out both;
}

@keyframes particlesIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body > main, body > footer { position: relative; z-index: 2; }

:root[data-ozt-surface="solid"] {
  --brand-page-edge: #101012;
  --personal-wall-shade: rgb(0 0 0 / .34);
}
:root[data-ozt-surface="solid"][data-theme="light"] {
  --brand-page-edge: var(--light-canvas);
  --personal-wall-shade: rgb(26 46 68 / .04);
}
:root[data-ozt-surface="solid"]:not(.is-lite) .app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--personal-wall-shade);
}

:root.is-lite { --brand-page-edge: #151517; }
:root.is-lite[data-ozt-surface="solid"] { --brand-page-edge: #111113; }
:root.is-lite[data-theme="light"],
:root.is-lite[data-ozt-surface="solid"][data-theme="light"] { --brand-page-edge: var(--light-canvas); }
:root.is-lite .app-bg { background: var(--brand-page-edge); }
.is-lite .app-bg__wall, .is-lite canvas.particles { display: none; }
@media (prefers-reduced-motion: reduce) {
  canvas.particles { display: none; }
}
