body {
  background-color: #0a0a1a;
}

#root {
  --background-overlay-top: 0.62;
  --background-overlay-middle: 0.5;
  --background-overlay-bottom: 0.7;
  /* 1920×814 بدل 3168×1344: الخلفية تُعرض cover تحت طبقة تعتيم 0.5–0.7، فلا
     شيء من تلك الدقة مرئي، ووزنها كان 2 409 247 بايت (66% من الصفحة). */
  --app-bg-image: url("./site-background-v2-1920.jpg");
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
}

#root::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-color: #0a0a1a;
  background-image:
    radial-gradient(1100px 560px at 88% -8%, rgba(99, 102, 241, 0.2), transparent 60%),
    radial-gradient(900px 520px at 6% 108%, rgba(168, 85, 247, 0.16), transparent 60%),
    linear-gradient(
      180deg,
      rgba(5, 8, 22, var(--background-overlay-top)) 0%,
      rgba(5, 8, 22, var(--background-overlay-middle)) 48%,
      rgba(10, 10, 26, var(--background-overlay-bottom)) 100%
    ),
    var(--app-bg-image);
  background-position: center, center, center, center 48%;
  background-size: auto, auto, auto, cover;
}

.bg-gradient-main {
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}

[class~="bg-[#0b0d0b]"] {
  background-color: transparent;
}

@media (max-width: 767px) {
  #root {
    --background-overlay-top: 0.72;
    --background-overlay-middle: 0.72;
    --background-overlay-bottom: 0.78;
    /* نسخة 900 بعرضٍ للهاتف: 57 508 بايت بدل 195 108، تُغطّي شاشةً بارتفاع
       850 بكسل تحت التعتيم. آيفون لا يصل إلى هنا: public/index.php يرشّح
       ios-lite-v1.css لمتصفّحات iPhone|iPod|iPad، وتلك القاعدة أخصّ من #root
       فتتقدّم عليها - أي أنّ الآيفون يبقى على خلفيته المخصّصة. */
    --app-bg-image: url("./site-background-v2-900.jpg");
  }

  #root::before {
    background-position: center, center, center, center 44%;
  }
}

@media (min-aspect-ratio: 1/1) {
  #root::before {
    background-position: center, center, center, center 52%;
  }
}
