/* SIA App Shell styles — native mobile-app feel */

html {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

body {
  overscroll-behavior-y: contain;
  -webkit-text-size-adjust: 100%;
}

/* Safe-area padding so content clears iPhone notches / home indicator when installed */
.sia-standalone body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- Splash screen (native-app launch feel) ---------- */
#sia-splash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#sia-splash img {
  width: 42vw;
  max-width: 190px;
  animation: sia-pulse 1.1s ease-in-out infinite;
}

@keyframes sia-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

.sia-splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Install App button ---------- */
#sia-install-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 50px;
  background: #e53935;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.35);
  cursor: pointer;
}

#sia-install-btn.is-visible {
  display: inline-flex;
}

#sia-install-btn:active {
  transform: scale(0.97);
}

@media (min-width: 992px) {
  #sia-install-btn {
    right: 24px;
    bottom: 24px;
  }
}
