* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.preview-container {
  width: 100%;
  max-width: 600px;
}

.preview-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  text-align: center;
}

.character-image, .profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  /* border: 4px solid #6a1b9a; */
}

.preview-card h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.description, .bio {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.open-app-button {
  display: inline-block;
  background: #6a1b9a;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  margin: 0.5rem;
}

.open-app-button:hover {
  background: #4a148c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 27, 154, 0.4);
}

.download-prompt {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1.5rem;
}

.download-prompt a {
  color: #6a1b9a;
  text-decoration: none;
  font-weight: 600;
}

.download-prompt a:hover {
  text-decoration: underline;
}

.store-badge-wrapper {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.store-badge-wrapper a {
  display: inline-block;
}

.store-badge {
  display: block;
  height: auto;
  transition: transform 0.3s;
}

.store-badge.badge-ios {
  height: 27px;
}

.store-badge.badge-google {
  height: 40px;
}

.store-badge:hover {
  transform: scale(1.05);
}

.referral-section {
  margin: 1rem 0;
  padding: 0.5rem 0;
}

.referral-text {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.referral-code-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.referral-code-box:hover {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.5);
}

.referral-code {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #7c3aed;
  font-family: 'Courier New', monospace;
}

.copy-icon {
  color: #7c3aed;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.referral-code-box:hover .copy-icon {
  opacity: 1;
}

/* Mobile responsive */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .preview-card {
    padding: 1.5rem;
  }

  .character-image, .profile-image {
    width: 150px;
    height: 150px;
  }

  .preview-card h1 {
    font-size: 1.5rem;
  }

  .stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Showcase characters only: tags, more like this, the way to /characters (config/showcase.js) */
.showcase {
  margin-top: 1.25rem;
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.showcase .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.showcase .tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(106, 27, 154, 0.3);
  color: #6a1b9a;
  text-decoration: none;
  font-size: 0.85rem;
}

.showcase .tag:hover {
  background: rgba(106, 27, 154, 0.08);
}

.showcase h2 {
  font-size: 1.1rem;
  color: #333;
  margin: 0.5rem 0 0.75rem;
  text-align: center;
}

.showcase .related {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.showcase .card {
  display: block;
  text-decoration: none;
  color: #333;
}

.showcase .card img,
.showcase .card .noimg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
}

.showcase .card .name {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
  margin-top: 0.35rem;
}

.showcase .card .line {
  display: none;
}

.showcase .all {
  text-align: center;
  margin-top: 1rem;
}

.showcase .all a {
  color: #6a1b9a;
  font-weight: 600;
}

@media (max-width: 480px) {
  .showcase .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
