:root {
  --splash-primary: #66bb6a;
  --splash-primary-lt: #a5d6a7;
  --splash-bg-start: #f7fbf0;
  --splash-bg-end: #eaf4e2;
  --splash-text: #1b5e20;
  --splash-subtext: #4caf50;
  --splash-ring: rgba(46, 125, 50, 0.25);
  --splash-ring-outer: rgba(46, 125, 50, 0.1);
}

#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--splash-bg-start) 0%, var(--splash-bg-end) 100%);
  overflow: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
  animation: splashFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes splashFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-icon-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 32px;
}

.splash-icon-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid var(--splash-ring);
  animation: ringPulse 2.4s ease-in-out infinite;
}

.splash-icon-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid var(--splash-ring-outer);
  animation: ringPulse 2.4s ease-in-out 0.6s infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.5;
  }
}

.splash-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 20px rgba(102, 187, 106, 0.25));
  animation: iconEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes iconEntrance {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.splash-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--splash-text);
  margin-bottom: 6px;
  animation: splashFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.splash-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--splash-subtext);
  margin-bottom: 52px;
  animation: splashFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.splash-progress-track {
  width: 200px;
  height: 3px;
  background: rgba(46, 125, 50, 0.12);
  border-radius: 99px;
  overflow: hidden;
  animation: splashFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--splash-primary), var(--splash-primary-lt));
  border-radius: 99px;
  animation: progressFill 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
  box-shadow: 0 0 8px rgba(102, 187, 106, 0.4);
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  60% {
    width: 75%;
  }
  85% {
    width: 90%;
  }
  100% {
    width: 100%;
  }
}
