@font-face {
  font-family: 'IRANYekan';
  src: url('/fonts/IRANYekan-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekan';
  src: url('/fonts/IRANYekan-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

.steed-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 18, 28, 0.45);
}

.steed-popup {
  --steed-purple: #5d2a9e;
  --steed-gold: #e5c67c;
  --steed-ink: #ffffff;
  --steed-muted: rgba(255, 255, 255, 0.78);
  width: min(100%, 380px);
  background: var(--steed-purple);
  border-radius: 22px;
  padding: 26px 22px 20px;
  text-align: center;
  font-family: IRANYekan, Tahoma, sans-serif;
  box-shadow:
    0 0 0 1px rgba(229, 198, 124, 0.45),
    0 22px 40px rgba(0, 0, 0, 0.22);
  animation: steed-in 0.28s ease-out;
}

@keyframes steed-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.steed-logo-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--steed-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  background: var(--steed-purple);
}

.steed-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.steed-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(229, 198, 124, 0.22);
  color: var(--steed-gold);
  font-size: 12px;
  font-weight: 700;
}

.steed-popup h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--steed-ink);
}

.steed-popup .steed-sub {
  margin: 0 auto 18px;
  color: var(--steed-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 22em;
}

.steed-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 2px dashed var(--steed-gold);
  background: rgba(0, 0, 0, 0.18);
}

.steed-code-box code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--steed-gold);
  user-select: all;
}

.steed-actions {
  display: grid;
  gap: 8px;
}

.steed-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.steed-btn-primary {
  background: var(--steed-gold);
  color: #3a2410;
}

.steed-btn-primary:hover {
  filter: brightness(1.06);
}

.steed-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
}

.steed-note {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #3a2410;
  background: #fbbf24;
  border: 1px solid #f59e0b;
  animation: steed-warn-pulse 1.35s ease-in-out infinite;
}

@keyframes steed-warn-pulse {
  0%,
  100% {
    background: #fbbf24;
    color: #3a2410;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.45);
  }
  50% {
    background: #f59e0b;
    color: #1f1408;
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .steed-popup {
    animation: none;
  }

  .steed-note {
    animation: none;
    background: #f59e0b;
  }
}
