.pace-auth-welcome {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: all;
}

.pace-auth-welcome.is-visible {
  opacity: 1;
}

.pace-auth-welcome-card {
  width: min(420px, 100%);
  background: linear-gradient(160deg, #1a1a1a 0%, #111 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
  color: #f5f5f5;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pace-auth-welcome.is-visible .pace-auth-welcome-card {
  transform: translateY(0) scale(1);
}

.pace-auth-welcome-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 56px;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.pace-auth-welcome-card h2 {
  margin: 0 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 400;
  line-height: 1.25;
}

.pace-auth-welcome-card h2 span {
  color: #fff;
  font-weight: 600;
}

.pace-auth-welcome-sub {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
}

.pace-auth-welcome-credit {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.pace-auth-welcome-link {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4ade80;
  text-decoration: none;
}

.pace-auth-welcome-link:hover {
  text-decoration: underline;
}

.pace-auth-welcome-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.pace-auth-welcome-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 999px;
  animation: paceWelcomeBar 2s linear forwards;
}

@keyframes paceWelcomeBar {
  from { width: 0; }
  to { width: 100%; }
}

.pace-auth-welcome-count {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.pace-auth-welcome-count strong {
  color: #4ade80;
  font-weight: 600;
}

body.pace-welcome-active {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 768px) {
  .pace-auth-welcome {
    padding: 16px;
    align-items: flex-end;
  }

  .pace-auth-welcome-card {
    padding: 28px 22px 24px;
    border-radius: 20px 20px 16px 16px;
    margin-bottom: env(safe-area-inset-bottom, 0);
  }
}