/* Mobile splash + PWA install banner */
html.splash-open,
html.splash-open body {
  overflow: hidden;
}

.mobile-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 200, 87, 0.18), transparent 45%),
    linear-gradient(160deg, #0f3a57 0%, #1a5278 48%, #0b2a3f 100%);
  color: #fff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-splash[hidden] {
  display: none !important;
}

.mobile-splash.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-splash__inner {
  text-align: center;
  padding: 2rem 1.5rem;
  animation: splash-rise 0.7s ease both;
}

.mobile-splash__logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.1rem;
}

.mobile-splash__brand {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.mobile-splash__tag {
  margin: 0.45rem 0 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.mobile-splash__loader {
  width: 36px;
  height: 36px;
  margin: 1.4rem auto 0;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #f0c14b;
  border-radius: 50%;
  animation: splash-spin 0.8s linear infinite;
}

@keyframes splash-spin {
  to { transform: rotate(360deg); }
}

@keyframes splash-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 99990;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: #0f3a57;
  box-shadow: 0 10px 30px rgba(15, 58, 87, 0.22);
  font-family: "Roboto", system-ui, sans-serif;
}

.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-install-banner__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.pwa-install-banner__text {
  flex: 1;
  min-width: 0;
}

.pwa-install-banner__text strong {
  display: block;
  font-size: 0.95rem;
}

.pwa-install-banner__text span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 2px;
}

.pwa-install-banner__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-install-banner__actions button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.pwa-install-banner__actions .pwa-install-banner__go {
  background: #1a5278;
  color: #fff;
}

.pwa-install-banner__actions .pwa-install-banner__no {
  background: #e8eef3;
  color: #334155;
}

@media (min-width: 900px) {
  .pwa-install-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: 360px;
  }
}
