/* Mobile-first. No external fonts, no external images, no CDN. */

:root {
  --bg: #0d0d10;
  --card: #17171c;
  --edge: #2a2a33;
  --text: #f5f5f7;
  --muted: #a5a5b0;
  --accent: #f0a8c0;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

#prompt {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
}

#prompt[hidden] {
  display: none;
}

/* Points at the ••• menu, which sits top-right in the Instagram webview. */
.pointer {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  right: 14px;
  color: var(--accent);
  opacity: 0.9;
  animation: nudge 1.8s ease-in-out infinite;
  pointer-events: none;
}

.arrow {
  display: block;
}

@keyframes nudge {
  0%,
  100% {
    transform: translate(0, 4px);
  }
  50% {
    transform: translate(4px, -2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pointer {
    animation: none;
  }
}

.card {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px 22px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--card);
  text-align: center;
}

/* Used only once an avatar is dropped into the slot in index.html. */
.avatar {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.steps {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
}

.steps strong {
  font-weight: 600;
}

.dots {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  letter-spacing: 1px;
}

.btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0 0 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.btn-secondary {
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--text);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.08);
}

.toast {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
}

/* Off-screen textarea used by the execCommand('copy') fallback. */
.offscreen {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
}
