:root {
  --bg: #fff3f7;
  --ink: #3b1a2c;
  --muted: #94667d;
  --pink: #f0458b;
  --pink-2: #ff8dbd;
  --soft: #ffe0ec;
  --card: rgba(255, 255, 255, .66);
  --line: rgba(240, 69, 139, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- background shapes ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; animation: float 20s ease-in-out infinite alternate; }
.b1 { width: 460px; height: 460px; background: #ffb4d2; top: -160px; left: -140px; }
.b2 { width: 380px; height: 380px; background: #ffd5c8; bottom: -140px; right: -120px; animation-delay: -7s; }
.b3 { width: 300px; height: 300px; background: #f5c8f4; top: 45%; left: 55%; opacity: .45; animation-delay: -13s; }
.shape { position: absolute; color: var(--pink-2); }
.ring { width: 150px; height: 150px; border: 1.5px solid var(--pink-2); border-radius: 50%; top: 9%; right: -40px; opacity: .55; animation: drift 24s ease-in-out infinite alternate; }
.square { width: 64px; height: 64px; border: 1.5px solid var(--pink-2); border-radius: 18px; bottom: 16%; left: 6%; opacity: .5; transform: rotate(18deg); animation: spin 30s linear infinite; }
.dots { width: 112px; height: 84px; top: 62%; right: 5%; opacity: .45;
  background-image: radial-gradient(var(--pink-2) 1.6px, transparent 1.8px); background-size: 14px 14px; }
.pill { width: 90px; height: 34px; border-radius: 99px; background: linear-gradient(90deg, #ffc6dd, #ffe3d6); top: 30%; left: -24px; opacity: .7; transform: rotate(-24deg); }
.squiggle { width: 120px; top: 5%; left: 10%; opacity: .6; }
.sparkle { width: 18px; top: 22%; left: 78%; opacity: .7; animation: twinkle 4s ease-in-out infinite; }
.sparkle.s2 { width: 12px; top: 74%; left: 18%; animation-delay: -2s; }

@keyframes float { to { transform: translate(50px, 40px) scale(1.1); } }
@keyframes drift { to { transform: translate(-30px, 40px); } }
@keyframes spin { to { transform: rotate(378deg); } }
@keyframes twinkle { 50% { transform: scale(.5) rotate(45deg); opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- layout ---------- */
main {
  position: relative; z-index: 1;
  width: 100%; max-width: 580px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  padding: max(56px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center;
}
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; animation: rise .6s both; }
.avatar {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover;
  padding: 4px; background: linear-gradient(135deg, var(--pink), #ffc4dc 60%, #ffd9c9);
  box-shadow: 0 14px 34px -12px rgba(240, 69, 139, .55);
}
.avatar-ph { display: grid; place-items: center; font-family: 'Instrument Serif', serif; font-size: 52px; color: #fff; }
h1 {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: clamp(36px, 9vw, 48px); line-height: 1.05; letter-spacing: -.01em;
  margin-top: 18px;
}
.bio { color: var(--muted); max-width: 38ch; margin-top: 8px; font-size: 15px; line-height: 1.55; }

.links { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.links li { animation: rise .55s both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
.link {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 9px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: inherit; text-decoration: none; font-weight: 500; font-size: 16px;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s, border-color .25s;
}
.link:hover { transform: translateY(-3px); background: #fff; border-color: rgba(240, 69, 139, .35); box-shadow: 0 16px 32px -18px rgba(240, 69, 139, .6); }
.link:active { transform: scale(.98); }
.link:focus-visible, .social:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.thumb, .spacer { width: 44px; height: 44px; flex: none; }
.thumb { border-radius: 13px; object-fit: cover; background: var(--soft); }
.title { flex: 1; text-align: center; padding: 0 6px; line-height: 1.3; }
.empty { text-align: center; color: var(--muted); font-family: 'Instrument Serif', serif; font-style: italic; font-size: 22px; padding: 30px 0; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: auto; padding-top: 44px; animation: rise .6s .5s both; }
.social {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--pink); background: var(--card); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .25s, background .25s, color .25s;
}
.social svg { width: 20px; height: 20px; }
.social:hover { transform: translateY(-3px); background: var(--pink); color: #fff; }

@media (max-width: 420px) {
  main { padding-top: 44px; }
  .avatar { width: 96px; height: 96px; }
  .link { min-height: 58px; font-size: 15px; }
  .thumb, .spacer { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
