/* Screen: spark (first run only, before the intro). A warm greeting on the same light theme as the
   intro and welcome screens, with a small looping animation (a badge with two soft pulsing rings). */

.spark {
  overflow: hidden;
  background: var(--ground);
  color: var(--ink);
}

.spark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.2) 0 95px, transparent 96px),
    radial-gradient(circle at 2% 42%, rgba(255, 255, 255, 0.14) 0 70px, transparent 71px),
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.16) 0 150px, transparent 151px);
}

.spark .body {
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.spark-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  animation: spark-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.spark-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow);
  animation: spark-float 3.6s ease-in-out 0.7s infinite;
}

.spark-badge svg.ic {
  width: 44px;
  height: 44px;
}

.spark-ring {
  position: absolute;
  inset: 29px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: spark-pulse 3.2s ease-out 0.6s infinite;
}

.spark-ring.r2 {
  animation-delay: 1.7s;
}

.spark-text {
  display: grid;
  gap: 4px;
  animation: spark-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s both;
}

.spark-hi {
  font-size: 15px;
  color: var(--ink-soft);
}

.spark-wm {
  margin: 0;
  line-height: 1.1;
  font-family: "Aref Ruqaa", var(--display);
  font-size: 72px;
  color: var(--primary);
}

.spark-line {
  margin-top: 4px;
  font-size: 16px;
  color: var(--ink);
}

.spark .btn.primary {
  min-width: min(260px, 80%);
  box-shadow: 0 14px 26px -12px rgba(150, 100, 30, 0.55);
  font-weight: 500;
  animation: spark-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.36s both;
}

@keyframes spark-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes spark-pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.1);
  }
}
