:root {
  --bg: #faf8f6;
  --card: #fff9f7;
  --text: #2d2a26;
  --text-muted: #6b6560;
  --accent: #e8b4bc;
  --accent-soft: #f5dde1;
  --border: #ecd5d9;
  --link: #c49a9f;
  --link-hover: #a67c82;
  --shadow: rgba(196, 154, 159, 0.15);
  --pink: #c49a9f;
}

@keyframes bgCycle {
  0%, 100% { background-color: #ffffff; }
  33.33% { background-color: #e8b4bc; }
  66.66% { background-color: #e4d4eb; }
}

@keyframes textIconColor {
  0%, 100% { color: #c49a9f; }
  25% { color: #ffffff; }
  75% { color: #ffffff; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: #ffffff;
  animation: bgCycle 12s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.profile {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.profile-header {
  margin-bottom: 1.25rem;
}

.avatar-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 2px solid var(--border);
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.name {
  animation: slideInRight 1s ease-out 0.2s forwards;
  opacity: 0;
  transform: translateX(-32px);
}

.tagline {
  animation: slideInRight 1s ease-out 0.4s forwards;
  opacity: 0;
  transform: translateX(-32px);
}

.links {
  animation: slideInUp 1s ease-out 0.6s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide avatar area if no image is set */
.avatar-wrap:has(.avatar[src=""]) {
  display: none;
}

.name {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #c49a9f;
  letter-spacing: 0.02em;
  animation: slideInRight 1s ease-out 0.2s forwards, textIconColor 12s ease-in-out infinite;
}

.tagline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: #c49a9f;
  animation: slideInRight 1s ease-out 0.4s forwards, textIconColor 12s ease-in-out infinite;
}

.about {
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
}

.about-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-inline: auto;
}

/* Hide about if empty or placeholder only */
.about:has(.about-text:empty) {
  display: none;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  opacity: 0;
}

.link {
  display: block;
  padding: 0.75rem 1.25rem;
  background: var(--card);
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.link:hover {
  background: var(--accent-soft);
  color: var(--link-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  margin: 0 auto;
}

.link-icon:hover {
  background: transparent;
  border-color: transparent;
  transform: translateY(-2px);
}

.link-icon {
  animation: textIconColor 12s ease-in-out infinite;
}

.link-icon .discord-logo {
  width: 32px;
  height: 32px;
  color: currentColor;
}