:root {
  --bg: #020617;
  --card: rgba(30, 41, 59, 0.55);
  --card-hover: rgba(51, 65, 85, 0.7);
  --border: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --purple: #8b5cf6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 60vh;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.22), transparent),
    radial-gradient(closest-side at 70% 40%, rgba(139, 92, 246, 0.18), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.page {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

.profile {
  text-align: center;
  margin-bottom: 28px;
}

/* The image file is a white square with the round sticker inside; the
   circle crop is display-only so the file itself stays untouched. */
.avatar {
  display: block;
  width: 136px;
  height: 136px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 10px 24px rgba(59, 130, 246, 0.25));
}

h1 {
  margin: 14px 0 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.handle {
  margin: 0;
  color: var(--blue);
  font-weight: 500;
  font-size: 15px;
}

.bio {
  margin: 10px auto 0;
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(8px);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .card:hover {
    background: var(--card-hover);
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
  }

  .social:hover {
    color: var(--text);
    border-color: rgba(59, 130, 246, 0.45);
  }
}

.card:active {
  transform: scale(0.98);
}

.card.collab {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.14)), var(--card);
}

.logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 16px;
}

.subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtitle.disclaimer {
  white-space: normal;
  font-size: 12px;
  line-height: 1.4;
}

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.social {
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
}

.footer a {
  display: inline-block;
  padding: 12px 16px;
  color: var(--muted);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}
