/* First paint for installed PWA: full splash before JS (no empty blue frame). Hidden in normal browser tabs. */
#pwa-static-splash {
  display: none !important;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  #pwa-static-splash {
    display: flex !important;
  }
}

/* Same layout as src/styles/pwaSplash.css; bar has no animation here (React splash runs the animation). */
#pwa-static-splash.pwaSplashRoot {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100dvh;
  min-height: 100vh;
  padding: 0;
  padding-top: env(safe-area-inset-top, 0);
  box-sizing: border-box;
  background: #2563eb;
  color: #fff;
  font-family: 'Cairo', system-ui, sans-serif;
  direction: rtl;
  text-align: center;
}

#pwa-static-splash .pwaSplashCluster {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px 20px 12px;
  box-sizing: border-box;
}

#pwa-static-splash .pwaSplashMark {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

#pwa-static-splash .pwaSplashCircle {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

#pwa-static-splash .pwaSplashCarIcon {
  width: 58px;
  height: 58px;
  color: #2563eb;
}

#pwa-static-splash .pwaSplashStar {
  position: absolute;
  top: -2px;
  inset-inline-end: -4px;
  width: 22px;
  height: 22px;
  color: #facc15;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

#pwa-static-splash .pwaSplashBrand {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 1000;
  letter-spacing: 0.02em;
  color: #fff;
}

#pwa-static-splash .pwaSplashHeadline {
  margin: 0 0 22px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.96);
  max-width: 320px;
}

#pwa-static-splash .pwaSplashBarWrap {
  width: min(280px, 86vw);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  margin-bottom: 18px;
}

#pwa-static-splash .pwaSplashBarFill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #fff;
}

#pwa-static-splash .pwaSplashSub {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 300px;
}

#pwa-static-splash .pwaSplashDots {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
}

#pwa-static-splash .pwaSplashDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

#pwa-static-splash .pwaSplashDot.isActive {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}
