:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

button,
a,
input,
textarea {
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

textarea {
  resize: vertical;
}

#customBackground {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.profile-card {
  background: rgba(13, 15, 13, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  color: #f8fafc;
  margin: 0 auto;
  max-width: 520px;
  padding: 2rem;
  text-align: center;
  width: min(100%, 520px);
}

.avatar {
  background: linear-gradient(135deg, #df6754, #f4c857, #6fb083);
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  height: 96px;
  margin: 0 auto 1rem;
  width: 96px;
}

.avatar-preview {
  flex: 0 0 auto;
  height: 72px;
  margin: 0;
  width: 72px;
}

.profile-card h1,
.profile-card h2 {
  color: #ffffff;
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 0.8rem;
  overflow-wrap: anywhere;
}

.profile-card p {
  color: #d4d4d8;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
}

.public-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.public-links a {
  align-items: center;
  background: #f4c857;
  border-radius: 8px;
  color: #0d0f0d;
  display: flex;
  font-weight: 900;
  gap: 0.75rem;
  justify-content: center;
  overflow-wrap: anywhere;
  padding: 1rem;
  text-decoration: none;
}

.public-links a:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.social-icon {
  align-items: center;
  background: rgba(13, 15, 13, 0.08);
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 1.75rem;
  justify-content: center;
  line-height: 1;
  width: 1.75rem;
}

.social-icon img {
  display: block;
  height: 1rem;
  width: 1rem;
}
