.pwa-update-banner,
.pwa-launch-screen {
  -webkit-font-smoothing: antialiased;
}

/* Quiet authority launch screen: installed app only, once per app session. */
.pwa-launch-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: calc(env(safe-area-inset-top) + 28px) 24px calc(env(safe-area-inset-bottom) + 30px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(120, 215, 196, .12), transparent 35%),
    #07182c;
  color: #f7f4ed;
  font-family: Inter, system-ui, sans-serif;
  opacity: 1;
  transition: opacity .3s ease, visibility .3s ease;
}
.pwa-launch-screen.is-leaving { opacity: 0; visibility: hidden; }
.pwa-launch-inner { display: grid; justify-items: center; gap: 13px; text-align: center; transform: translateY(-10px); }
.pwa-launch-inner img { width: clamp(94px, 25vw, 118px); height: auto; display: block; }
.pwa-launch-inner strong { margin-top: 7px; font-size: clamp(17px, 4.8vw, 22px); font-weight: 850; letter-spacing: .16em; }
.pwa-launch-inner > span { color: #8fd7c9; font-size: clamp(9px, 2.5vw, 11px); font-weight: 750; letter-spacing: .18em; }
.pwa-launch-progress { width: min(142px, 44vw); height: 2px; margin-top: 15px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.pwa-launch-progress i { display: block; width: 48%; height: 100%; background: #c99b2e; animation: pwa-launch-progress 1.25s ease-in-out both; }
.pwa-launch-screen > small { position: absolute; right: 24px; bottom: calc(env(safe-area-inset-bottom) + 28px); left: 24px; color: #9cafbd; font-size: 10px; font-weight: 650; letter-spacing: .05em; text-align: center; }
@keyframes pwa-launch-progress {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(215%); }
}
@media (prefers-reduced-motion: reduce) {
  .pwa-launch-screen { transition-duration: .12s; }
  .pwa-launch-progress i { animation: none; transform: none; }
}

.pwa-update-banner {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(430px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid #28445f;
  border-top: 4px solid #78d7c4;
  border-radius: 12px;
  background: #07182c;
  color: #fff;
  box-shadow: 0 20px 60px rgba(3, 16, 31, .32);
  font-family: Inter, system-ui, sans-serif;
}
.pwa-update-banner div { display: grid; gap: 4px; }
.pwa-update-banner strong { font-size: 13px; }
.pwa-update-banner span { color: #afbfcc; font-size: 11px; line-height: 1.45; }
.pwa-update-banner button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: #78d7c4;
  color: #07182c;
  font: 850 10px/1 Inter, system-ui, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 600px) {
  .pwa-update-banner {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100vw - 24px);
  }
  .pwa-update-banner button { width: 100%; }
}
