.lw-pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.lw-pwa-splash.lw-pwa-splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lw-pwa-splash__bg {
  position: absolute;
  inset: 0;
  background: inherit;
}

/* ── Shared ── */
.lw-pwa-splash__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 2rem;
  text-align: center;
}

.lw-pwa-splash__logo-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lw-pwa-splash__logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.lw-pwa-splash__logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 2rem/1 Tahoma, sans-serif;
  color: #fff;
  background: var(--lw-splash-accent, #0d9488);
}

.lw-pwa-splash__name {
  font: 700 1.15rem/1.4 Tahoma, sans-serif;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.02em;
}

.lw-pwa-splash__loader {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  height: 1.25rem;
}

.lw-pwa-splash__loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: lwSplashDot 1.1s ease-in-out infinite;
}

.lw-pwa-splash__loader span:nth-child(2) { animation-delay: 0.15s; }
.lw-pwa-splash__loader span:nth-child(3) { animation-delay: 0.3s; }

.lw-pwa-splash__bar {
  width: 120px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.lw-pwa-splash__bar--wide { width: 160px; }

.lw-pwa-splash__bar-fill {
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
  animation: lwSplashBar 1.4s ease-in-out infinite;
}

.lw-pwa-splash__spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: transparent;
  animation: lwSplashSpin 0.85s linear infinite;
}

/* ── Pulse ── */
.lw-pwa-splash--pulse .lw-pwa-splash__inner--pulse {
  animation: lwSplashInnerIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lw-pwa-splash--pulse .lw-pwa-splash__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  animation: lwSplashOrb 4s ease-in-out infinite alternate;
}

.lw-pwa-splash--pulse .lw-pwa-splash__orb--1 {
  width: 55vmin;
  height: 55vmin;
  top: -12vmin;
  right: -10vmin;
  background: rgba(255, 255, 255, 0.35);
}

.lw-pwa-splash--pulse .lw-pwa-splash__orb--2 {
  width: 45vmin;
  height: 45vmin;
  bottom: -14vmin;
  left: -12vmin;
  background: rgba(0, 0, 0, 0.12);
  animation-delay: -1.2s;
}

.lw-pwa-splash--pulse .lw-pwa-splash__ring {
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: lwSplashRing 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.lw-pwa-splash--pulse .lw-pwa-splash__ring--2 { animation-delay: 0.8s; }

.lw-pwa-splash--pulse .lw-pwa-splash__logo {
  animation: lwSplashLogo 2.2s ease-in-out infinite;
}

.lw-pwa-splash--pulse .lw-pwa-splash__name {
  animation: lwSplashName 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.lw-pwa-splash--pulse .lw-pwa-splash__loader,
.lw-pwa-splash--pulse .lw-pwa-splash__bar {
  animation: lwSplashName 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ── Minimal ── */
.lw-pwa-splash--minimal .lw-pwa-splash__inner--minimal {
  animation: lwSplashFadeUp 0.7s ease both;
}

.lw-pwa-splash--minimal .lw-pwa-splash__logo-wrap--minimal::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lw-pwa-splash--minimal .lw-pwa-splash__logo {
  animation: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ── Wave ── */
.lw-pwa-splash--wave .lw-pwa-splash__inner--wave {
  margin-bottom: 12vh;
  animation: lwSplashInnerIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lw-pwa-splash--wave .lw-pwa-splash__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  overflow: hidden;
  pointer-events: none;
}

.lw-pwa-splash--wave .lw-pwa-splash__wave-layer {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 100%;
  border-radius: 45% 48% 0 0;
  opacity: 0.35;
  animation: lwSplashWave 5s ease-in-out infinite;
}

.lw-pwa-splash--wave .lw-pwa-splash__wave-layer--1 {
  bottom: 0;
  background: rgba(255, 255, 255, 0.45);
}

.lw-pwa-splash--wave .lw-pwa-splash__wave-layer--2 {
  bottom: -8%;
  background: rgba(255, 255, 255, 0.25);
  animation-delay: -1.5s;
  animation-duration: 6s;
}

.lw-pwa-splash--wave .lw-pwa-splash__wave-layer--3 {
  bottom: -16%;
  background: rgba(0, 0, 0, 0.08);
  animation-delay: -3s;
  animation-duration: 7s;
}

.lw-pwa-splash--wave .lw-pwa-splash__logo {
  animation: lwSplashFloat 2.8s ease-in-out infinite;
}

.lw-pwa-splash--wave .lw-pwa-splash__loader--wave span {
  width: 8px;
  height: 8px;
}

/* ── Orbit ── */
.lw-pwa-splash--orbit .lw-pwa-splash__inner--orbit {
  animation: lwSplashInnerIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lw-pwa-splash--orbit .lw-pwa-splash__logo-wrap--orbit {
  width: 140px;
  height: 140px;
}

.lw-pwa-splash--orbit .lw-pwa-splash__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  animation: lwSplashSpin 4s linear infinite;
}

.lw-pwa-splash--orbit .lw-pwa-splash__orbit--2 {
  inset: 10px;
  animation-direction: reverse;
  animation-duration: 3s;
}

.lw-pwa-splash--orbit .lw-pwa-splash__orbit--3 {
  inset: 22px;
  border-style: solid;
  border-color: transparent;
  border-top-color: rgba(255, 255, 255, 0.7);
  animation-duration: 1.2s;
}

.lw-pwa-splash--orbit .lw-pwa-splash__logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  animation: lwSplashLogo 2.4s ease-in-out infinite;
}

/* ── Glass ── */
.lw-pwa-splash--glass .lw-pwa-splash__inner--glass {
  animation: lwSplashInnerIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lw-pwa-splash--glass .lw-pwa-splash__glass-card {
  padding: 2rem 2.25rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: lwSplashGlassIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lw-pwa-splash--glass .lw-pwa-splash__logo {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lw-pwa-splash--glass .lw-pwa-splash__bar {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Bounce ── */
.lw-pwa-splash--bounce .lw-pwa-splash__inner--bounce {
  gap: 1.25rem;
}

.lw-pwa-splash--bounce .lw-pwa-splash__logo-wrap--bounce {
  animation: lwSplashBounceIn 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.lw-pwa-splash--bounce .lw-pwa-splash__logo {
  animation: lwSplashBounceIdle 2s ease-in-out 1.1s infinite;
}

.lw-pwa-splash--bounce .lw-pwa-splash__name {
  animation: lwSplashName 0.6s ease 0.35s both;
}

/* ── Shimmer ── */
.lw-pwa-splash--shimmer .lw-pwa-splash__shimmer {
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  animation: lwSplashShimmer 2.2s ease-in-out infinite;
  pointer-events: none;
}

.lw-pwa-splash--shimmer .lw-pwa-splash__inner--shimmer {
  animation: lwSplashScaleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lw-pwa-splash--shimmer .lw-pwa-splash__logo {
  animation: lwSplashPulseGlow 2s ease-in-out infinite;
}

.lw-pwa-splash--shimmer .lw-pwa-splash__bar {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Keyframes ── */
@keyframes lwSplashOrb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-3vmin, 2vmin) scale(1.08); }
}

@keyframes lwSplashInnerIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lwSplashFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lwSplashRing {
  0% { transform: scale(0.92); opacity: 0.85; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes lwSplashLogo {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

@keyframes lwSplashFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes lwSplashName {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lwSplashDot {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.45; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes lwSplashBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes lwSplashSpin {
  to { transform: rotate(360deg); }
}

@keyframes lwSplashWave {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(-4%) rotate(2deg); }
}

@keyframes lwSplashGlassIn {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes lwSplashBounceIn {
  0% { opacity: 0; transform: scale(0.2); }
  55% { opacity: 1; transform: scale(1.08); }
  75% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

@keyframes lwSplashBounceIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes lwSplashShimmer {
  0% { transform: translateX(-30%) rotate(0deg); }
  100% { transform: translateX(30%) rotate(0deg); }
}

@keyframes lwSplashScaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes lwSplashPulseGlow {
  0%, 100% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); }
  50% { box-shadow: 0 12px 48px rgba(255, 255, 255, 0.25), 0 0 0 8px rgba(255, 255, 255, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .lw-pwa-splash__orb,
  .lw-pwa-splash__ring,
  .lw-pwa-splash__logo,
  .lw-pwa-splash__loader span,
  .lw-pwa-splash__bar-fill,
  .lw-pwa-splash__orbit,
  .lw-pwa-splash__wave-layer,
  .lw-pwa-splash__shimmer,
  .lw-pwa-splash__spinner,
  .lw-pwa-splash__glass-card,
  .lw-pwa-splash__logo-wrap--bounce {
    animation: none !important;
  }
}
