/* ---------- Tokens ---------- */
:root {
  /* Sphynx palette — rosy pink + leaf-green eyes */
  --pink-200: #ffd5e0;
  --pink-300: #ffa6c1;
  --pink-400: #f57aa0;
  --pink-500: #e25586;
  --pink-600: #c23e6f;
  --rose-deep: #7e2545;

  --green-300: #aed47a;
  --green-400: #8cbb4e;
  --green-500: #6fa038;

  --card-bg: rgba(255, 245, 248, 0.82);
  --card-border: rgba(255, 255, 255, 0.7);
  --card-shadow: 0 28px 70px -22px rgba(120, 30, 60, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.25);

  --text: #4f2236;
  --text-soft: #6e3850;
  --text-muted: #9a6c7e;

  --btn-radius: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  overflow-x: hidden;
  background: #e8aebc;
}

/* ---------- Background image + scrim ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("background.png") center center / cover no-repeat;
  background-attachment: fixed;
}

/* soft rosy scrim so the card and text always read clearly */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      120% 90% at 50% 40%,
      rgba(80, 25, 45, 0.05) 0%,
      rgba(80, 25, 45, 0.28) 70%,
      rgba(60, 18, 35, 0.5) 100%
    );
}

/* ---------- Card ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 44px 28px 30px;
  border-radius: 30px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb3c8 0%, #f57aa0 55%, #c23e6f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 0 0 7px rgba(140, 187, 78, 0.55),   /* green eye-accent ring */
    0 16px 34px -10px rgba(194, 62, 111, 0.55);
  background-size: cover;
  background-position: 38% 6%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.avatar.has-image .avatar__initial {
  display: none;
}

.avatar__initial {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 50px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(120, 30, 60, 0.35);
}

.hero__ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 210px;
}

.hero__line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(140, 187, 78, 0.6),
    transparent
  );
}

.hero__icon {
  color: var(--green-500);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.2em;
  filter: drop-shadow(0 1px 3px rgba(120, 30, 60, 0.3));
}

.name {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--rose-deep);
}

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

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 16px 26px;
  border-radius: var(--btn-radius);
  border: 1.5px solid rgba(194, 62, 111, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--rose-deep);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.link-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(194, 62, 111, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -12px rgba(194, 62, 111, 0.4);
}

.link-btn:hover::after {
  transform: translateX(120%);
}

.link-btn:active {
  transform: translateY(0) scale(0.99);
}

.link-btn:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
}

/* Primary button — rosy pink gradient */
.link-btn--primary {
  background: linear-gradient(135deg, #ff9ebf 0%, #f57aa0 50%, #e25586 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 2px rgba(120, 30, 60, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -8px 22px rgba(160, 40, 80, 0.25) inset,
    0 16px 34px -10px rgba(226, 85, 134, 0.6);
}

.link-btn--primary:hover {
  background: linear-gradient(135deg, #ffb0cb 0%, #f98bad 50%, #ec6896 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -8px 22px rgba(160, 40, 80, 0.3) inset,
    0 22px 44px -12px rgba(226, 85, 134, 0.75);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 380px) {
  .card {
    padding: 38px 22px 26px;
    border-radius: 26px;
  }

  .name {
    font-size: 33px;
  }

  .avatar {
    width: 104px;
    height: 104px;
  }

  .avatar__initial {
    font-size: 44px;
  }

  .link-btn {
    min-height: 54px;
    font-size: 14.5px;
  }
}

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .card {
    max-width: 440px;
    padding: 54px 36px 34px;
  }

  .name {
    font-size: 42px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card,
  .link-btn,
  .link-btn::after {
    animation: none !important;
    transition: none !important;
  }
  .link-btn:hover {
    transform: none;
  }
}
