/* ── Keyframes ── */
@keyframes sp-scaleIn {
  0%   { transform: scale(0.25); opacity: 0; }
  65%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes sp-sway {
  0%   { filter: brightness(.8) saturate(.9); }
  100% { filter: brightness(1.3) saturate(1.1); }
}
@keyframes sp-dotPulse {
  0%   { transform: scale(.88); opacity: .78; }
  100% { transform: scale(1.18); opacity: 1; }
}
@keyframes sp-orbitSpin { to { transform: rotate(360deg); } }
@keyframes sp-ringGlow {
  0%   { opacity: .3; box-shadow: 0 0 4px 1px rgba(255,187,119,.08); }
  100% { opacity: .8; box-shadow: 0 0 14px 3px rgba(255,187,119,.22); }
}
@keyframes sp-glowPulse {
  0%   { transform: scale(1);    opacity: .6; }
  100% { transform: scale(1.15); opacity: 1;  }
}
@keyframes sp-ringPulse {
  0%   { transform: scale(1);   opacity: .3; }
  100% { transform: scale(1.08); opacity: .8; }
}
@keyframes fadeInUp {
  0%   { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}
@keyframes progressFill {
  0%   { width: 0; }
  100% { width: 75%; }
}

/* ── Splash screen ── */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--splash-bg);
  transition: opacity 0.5s ease;
}
.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ── Lotus wrapper (matches hero hp-lotus-wrap, scaled to 160px) ── */
.sp-icon-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sp-scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Radial glow behind lotus */
.sp-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,187,119,.2) 0%, rgba(224,136,216,.12) 50%, transparent 72%);
  animation: sp-glowPulse 3.5s ease-in-out infinite alternate;
}

/* Orbit rings — spin + glow, same as hero */
.sp-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
}
.sp-ring-1 {
  width: 130px; height: 130px;
  margin: -65px 0 0 -65px;
  border: 1px solid rgba(255,187,119,.18);
  animation: sp-orbitSpin 18s linear infinite, sp-ringGlow 2.2s ease-in-out infinite alternate;
}
.sp-ring-2 {
  width: 164px; height: 164px;
  margin: -82px 0 0 -82px;
  border: 1px solid rgba(224,136,216,.12);
  animation: sp-orbitSpin 28s linear infinite reverse, sp-ringGlow 3s ease-in-out infinite alternate;
  animation-delay: 0s, .6s;
}

/* ── CSS lotus petals (scaled from hero: 190→160, factor 0.84) ── */
.sp-petal {
  position: absolute;
  left: 50%; top: 50%;
  width: 30px; height: 45px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(224,136,216,.78), rgba(224,136,216,.06));
  transform-origin: 50% 100%;
  margin-left: -15px; margin-top: -45px;
  animation: sp-sway 4.5s ease-in-out infinite alternate;
}
/* Outer petals — children 4-11 */
.sp-petal:nth-child(4)  { transform: rotate(0deg);   animation-delay: 0s; }
.sp-petal:nth-child(5)  { transform: rotate(45deg);  animation-delay: .5s; }
.sp-petal:nth-child(6)  { transform: rotate(90deg);  animation-delay: 1s; }
.sp-petal:nth-child(7)  { transform: rotate(135deg); animation-delay: 1.5s; }
.sp-petal:nth-child(8)  { transform: rotate(180deg); animation-delay: 2s; }
.sp-petal:nth-child(9)  { transform: rotate(225deg); animation-delay: 2.5s; }
.sp-petal:nth-child(10) { transform: rotate(270deg); animation-delay: 3s; }
.sp-petal:nth-child(11) { transform: rotate(315deg); animation-delay: 3.5s; }

/* Inner saffron petals */
.sp-petal.in {
  width: 20px; height: 32px;
  margin-left: -10px; margin-top: -32px;
  background: linear-gradient(180deg, rgba(255,187,119,.88), rgba(255,187,119,.06));
}
/* Inner petals — children 12-19 */
.sp-petal.in:nth-child(12) { transform: rotate(22.5deg);  animation-delay: .25s; }
.sp-petal.in:nth-child(13) { transform: rotate(67.5deg);  animation-delay: .75s; }
.sp-petal.in:nth-child(14) { transform: rotate(112.5deg); animation-delay: 1.25s; }
.sp-petal.in:nth-child(15) { transform: rotate(157.5deg); animation-delay: 1.75s; }
.sp-petal.in:nth-child(16) { transform: rotate(202.5deg); animation-delay: 2.25s; }
.sp-petal.in:nth-child(17) { transform: rotate(247.5deg); animation-delay: 2.75s; }
.sp-petal.in:nth-child(18) { transform: rotate(292.5deg); animation-delay: 3.25s; }
.sp-petal.in:nth-child(19) { transform: rotate(337.5deg); animation-delay: 3.75s; }

/* Center image — matches hero hp-rk-img */
.sp-lc {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.sp-rk-img {
  width: 60px; height: 60px; object-fit: contain;
  animation: sp-dotPulse 2.5s ease-in-out infinite alternate;
}

/* ── Title & subtitle ── */
.splash-title {
  margin-top: 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  background: var(--splash-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  animation: fadeInUp 0.7s ease-out 0.55s both;
}
.splash-subtitle {
  margin-top: 5px;
  font-size: 10px;
  color: var(--splash-subtitle);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  animation: fadeInUp 0.7s ease-out 0.85s both;
}

/* ── Progress bar ── */
.splash-progress {
  position: absolute;
  bottom: 48px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: var(--splash-bar-bg);
  border-radius: 3px;
  overflow: hidden;
}
.splash-progress-bar {
  height: 100%;
  background: var(--splash-bar-fill);
  border-radius: 3px;
  animation: progressFill 1.5s ease-out forwards;
}
.splash-url {
  position: absolute;
  bottom: 24px;
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0.3;
}
