/* Processing / Splash screen styles
 * Extracted from application.css and simulation.css for maintainability.
 */

/* ── Splash theme (radar + step + postures lines) ──────────────── */

.splash-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 2rem;
}

.splash-screen__inner {
  text-align: center;
  max-width: 420px;
}

/* Animated radar/ping rings */
.splash-screen__logo {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 2rem;
}

.splash-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.splash-ring--outer {
  border: 2px solid var(--accent);
  animation: splash-pulse 2.4s ease-out infinite;
}

.splash-ring--inner {
  border: 2px solid var(--accent);
  inset: 12px;
  animation: splash-pulse 2.4s ease-out 0.8s infinite;
}

.splash-ring--dot {
  inset: 32px;
  background: var(--accent);
  border-radius: 50%;
  animation:
    splash-pulse 2.4s ease-out 1.6s infinite,
    splash-glow 2.4s ease-in-out infinite;
}

@keyframes splash-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes splash-glow {
  0%,
  100% {
    box-shadow: 0 0 8px var(--accent);
  }
  50% {
    box-shadow: 0 0 24px var(--accent);
  }
}

.splash-screen__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  margin: 0 0 0.25rem;
  color: var(--text);
}

.splash-screen__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

.splash-screen__step {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.splash-screen__step-label {
  color: var(--text-tertiary);
}

.splash-screen__step-value {
  color: var(--accent);
}

.splash-screen__postures {
  margin: 0 auto 1.25rem;
  max-width: 360px;
  text-align: left;
  min-height: 2rem;
}

.splash-screen__posture-line {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  word-break: break-word;
  opacity: 0;
  animation: splash-line-fade-in 0.3s ease-out forwards;
}

@keyframes splash-line-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-screen__hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.splash-screen__back {
  font-size: 0.8125rem;
}

.splash-screen__link {
  color: var(--text-tertiary);
  text-decoration: underline;
}

.splash-screen__link:hover {
  color: var(--text-secondary);
}

/* ── Minimal theme (spinner + outputTail) ────────────────────────── */

.input-processing {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent-bg);
}

.feedback-processing {
  background: color-mix(
    in srgb,
    var(--accent-bg) 70%,
    var(--ping-feedback-accent) 30%
  );
}

.input-processing-title {
  margin-top: 0.4rem;
}

.input-processing-hint {
  color: var(--text-light);
  font-size: 0.9rem;
}

.input-processing-spinner {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 3px solid var(--border);
  border-top-color: var(--text);
  animation: input-processing-spin 0.8s linear infinite;
}

@keyframes input-processing-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
