:root {
  --mtek-navy: #071426;
  --mtek-blue: #0877bd;
  --mtek-red: #f42d32;
}

.pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(8, 119, 189, .34), transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(244, 45, 50, .23), transparent 38%),
    linear-gradient(145deg, #06101e, #0a203b 55%, #071426);
  color: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}

.pwa-splash::before,
.pwa-splash::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  animation: pwa-orbit 5s linear infinite;
}

.pwa-splash::after { width: 430px; height: 430px; animation-direction: reverse; animation-duration: 8s; }
.pwa-splash.is-closing { opacity: 0; visibility: hidden; }
.pwa-splash__content { position: relative; z-index: 1; width: min(82vw, 340px); text-align: center; }
.pwa-splash__logo-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 70px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.18);
  animation: pwa-logo-in .8s cubic-bezier(.2,.85,.3,1.2) both;
}
.pwa-splash__logo { width: 112px; height: auto; }
.pwa-splash__title { margin: 0; font: 700 25px/1.2 system-ui, sans-serif; letter-spacing: .02em; }
.pwa-splash__tagline { margin: 8px 0 28px; color: rgba(255,255,255,.68); font: 400 13px/1.5 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.pwa-splash__track { height: 3px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.13); }
.pwa-splash__bar { width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mtek-blue), #42b6f5, var(--mtek-red)); animation: pwa-load 1.35s ease-in-out infinite; }

.pwa-install-login {
  width: 100%;
  margin: 10px 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(8,119,189,.25);
  border-radius: 7px;
  background: #f5fbff;
  color: #075f99;
  font-weight: 700;
  cursor: pointer;
}
.pwa-install-login[hidden], #pwa-install-button[hidden] { display: none !important; }

.pwa-ios-guide {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(2, 10, 20, .65);
  backdrop-filter: blur(5px);
}
.pwa-ios-guide__card { width: min(100%, 420px); padding: 24px; border-radius: 22px; background: #fff; color: #152235; box-shadow: 0 24px 80px rgba(0,0,0,.35); font-family: system-ui, sans-serif; }
.pwa-ios-guide__card h3 { margin: 0 0 10px; font-size: 20px; }
.pwa-ios-guide__card p { margin: 8px 0; line-height: 1.5; }
.pwa-ios-guide__card button { width: 100%; margin-top: 14px; padding: 11px; border: 0; border-radius: 10px; background: var(--mtek-navy); color: #fff; font-weight: 700; }

@keyframes pwa-logo-in { from { opacity: 0; transform: translateY(20px) scale(.72) rotate(-5deg); } to { opacity: 1; transform: none; } }
@keyframes pwa-load { from { transform: translateX(-110%); } to { transform: translateX(245%); } }
@keyframes pwa-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pwa-splash *, .pwa-splash::before, .pwa-splash::after { animation-duration: .01ms !important; } }
