:root {
  --app-splash-navy: #071a33;
  --app-splash-navy-soft: #0c2947;
  --app-splash-orange: #f04409;
  --app-splash-cyan: #25c6d9;
}

.ugestor-app-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(37, 198, 217, .22), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(240, 68, 9, .16), transparent 32%),
    linear-gradient(145deg, var(--app-splash-navy) 0%, var(--app-splash-navy-soft) 100%);
  font-family: Outfit, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}

.ugestor-app-splash::before,
.ugestor-app-splash::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
}

.ugestor-app-splash::before { width: min(70vw, 720px); aspect-ratio: 1; top: -42%; right: -18%; }
.ugestor-app-splash::after { width: min(44vw, 440px); aspect-ratio: 1; bottom: -30%; left: -12%; }
.ugestor-app-splash.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.ugestor-app-splash.is-session-repeat { display: none; }

.ugestor-app-splash__glow {
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 198, 217, .12), transparent 66%);
  filter: blur(10px);
}

.ugestor-app-splash__content { position: relative; width: min(100%, 560px); }
.ugestor-app-splash__brand { display: flex; align-items: center; gap: 16px; }
.ugestor-app-splash__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}
.ugestor-app-splash__mark img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.ugestor-app-splash__brand strong { display: block; margin-top: 3px; font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 650; letter-spacing: -.02em; }
.ugestor-app-splash__eyebrow { display: block; color: rgba(255, 255, 255, .62); font-size: .7rem; font-weight: 650; letter-spacing: .18em; }

.ugestor-app-splash__message { margin-top: clamp(42px, 8vh, 72px); }
.ugestor-app-splash__message > span { display: inline-flex; align-items: center; gap: 9px; color: var(--app-splash-cyan); font-size: .76rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.ugestor-app-splash__message > span::before { width: 30px; height: 3px; border-radius: 999px; background: var(--app-splash-orange); content: ""; }
.ugestor-app-splash__message h1 { max-width: 520px; margin: 16px 0 12px; font-size: clamp(2rem, 7vw, 3.45rem); font-weight: 650; line-height: 1.02; letter-spacing: -.045em; }
.ugestor-app-splash__message p { margin: 0; color: rgba(255, 255, 255, .68); font-size: clamp(.95rem, 2vw, 1.08rem); }

.ugestor-app-splash__progress { width: min(100%, 280px); height: 4px; margin-top: 42px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.ugestor-app-splash__progress span { display: block; width: 44%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--app-splash-orange), var(--app-splash-cyan)); animation: app-splash-progress 1.35s ease-in-out infinite; }

@keyframes app-splash-progress {
  0% { transform: translateX(-105%); }
  55% { transform: translateX(110%); }
  100% { transform: translateX(245%); }
}

@media (max-width: 480px) {
  .ugestor-app-splash__mark { width: 58px; height: 58px; border-radius: 18px; }
  .ugestor-app-splash__mark img { width: 40px; height: 40px; }
  .ugestor-app-splash__message { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ugestor-app-splash, .ugestor-app-splash__progress span { animation: none; transition: none; }
  .ugestor-app-splash__progress span { width: 65%; transform: none; }
}
