/* A permanent Georgia landscape layer shared by the welcome and signed-in app. */
#scenic-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, #dfebf2 0%, #f3e2cc 53%, #94a99e 100%);
}

#scenic-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 250, 238, .42), rgba(255, 250, 238, .16) 55%, rgba(236, 243, 238, .3));
}

#scenic-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  opacity: .86;
  transition: opacity .65s ease;
}

html, body { min-height: 100%; background: transparent !important; }
body { position: relative; isolation: isolate; }
#app { position: relative; z-index: 1; min-height: 100vh; }
#modal-root { position: relative; z-index: 20; }

/* Keep the landscape present while preserving contrast behind text and controls. */
.sidebar {
  background: rgba(250, 249, 242, .83) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
}
.topbar {
  background: rgba(249, 248, 244, .78) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
}
.workspace { background: transparent !important; }
.page { background: transparent !important; }
.panel, .track-card, .lesson-card, .path-card, .summary-card, .stat-card {
  background-color: rgba(255, 255, 252, .89) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
  backdrop-filter: blur(12px) saturate(1.04);
}
.hero { background: rgba(244, 228, 210, .88) !important; }
.path-map { background: linear-gradient(rgba(232, 239, 223, .9), rgba(247, 248, 240, .9)) !important; }

.welcome-landing {
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.welcome-header, .welcome-facts, .welcome-card, .welcome-steps,
.welcome-last, .welcome-footer {
  background-color: rgba(250, 249, 242, .84) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
}
.welcome-hero { background: rgba(249, 248, 242, .34) !important; }
.welcome-hero-copy {
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 26px;
  background: rgba(250, 249, 242, .82);
  box-shadow: 0 16px 44px rgba(45, 58, 51, .1);
  -webkit-backdrop-filter: blur(16px) saturate(1.04);
  backdrop-filter: blur(16px) saturate(1.04);
}

@media (max-width: 700px) {
  #scenic-background video { object-position: 58% center; }
  #scenic-background::after {
    background: linear-gradient(180deg, rgba(255, 250, 238, .35), rgba(255, 250, 238, .16) 48%, rgba(236, 243, 238, .34));
  }
  .sidebar, .topbar { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .welcome-hero-copy { padding: 21px 18px 22px; border-radius: 22px; }
  .panel, .track-card, .lesson-card, .path-card, .summary-card, .stat-card {
    background-color: rgba(255, 255, 252, .93) !important;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #scenic-background video { transition: none; }
}
