:root {
  --ink: #263247;
  --yellow: #eef2ff;
  --purple: #5267d8;
  --paper: #ffffff;
  --purple-dark: #4054c4;
  --shadow: 0 5px 18px rgba(38, 50, 71, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  color: var(--ink);
  background: #ffffff;
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.bg-circle {
  position: absolute; top: 5%; right: -105px; width: 170px; height: 170px;
  border: 2px solid #dfe5f2; border-radius: 50%; background: #e8edff;
  box-shadow: 0 8px 24px rgba(38, 50, 71, .08);
}

.bg-ring {
  position: absolute; bottom: 5%; left: -95px; width: 150px; height: 150px;
  border: 2px solid #dfe5f2; border-radius: 50%;
}

.bg-stripes {
  position: absolute; top: 45%; left: -75px; width: 135px; height: 66px;
  border: 2px solid #dfe5f2;
  background: repeating-linear-gradient(45deg, #e8edff 0 9px, var(--paper) 9px 18px);
  transform: rotate(-12deg);
}

.bg-tri {
  position: absolute; top: 65%; right: -35px; width: 78px; height: 70px;
  fill: var(--paper); stroke: #5267d8; stroke-width: 5; stroke-linejoin: round;
  transform: rotate(14deg);
}

.bg-plus {
  position: absolute; width: 26px; height: 26px; fill: none;
  stroke: #5267d8; stroke-width: 3.5; stroke-linecap: square;
}

.bg-plus-a { top: 34%; right: 8px; }
.bg-plus-b { bottom: 25%; left: 8px; }
.bg-plus-c { top: 20%; left: 8px; }

main {
  position: relative; z-index: 1; width: min(100%, 460px);
  margin: 0 auto; padding: 38px 18px 30px;
}

.squiggle {
  position: absolute; top: 10px; left: 22px; width: 72px; height: 18px;
  fill: none; stroke: #5267d8; stroke-width: 3; stroke-linecap: round;
}

.card {
  border: 1px solid #e5e9f2; border-radius: 18px;
  background: var(--paper); box-shadow: 0 12px 34px rgba(38, 50, 71, .08);
}

.profile {
  position: relative; padding: 26px 18px 24px; text-align: center;
  border: 2px solid #dfe5f2; border-radius: 20px;
  background:
    radial-gradient(circle, rgba(82, 103, 216, .16) 1.4px, transparent 1.6px) 0 0 / 16px 16px,
    linear-gradient(160deg, #eef1ff 0%, #f6eaff 55%, #ffeaf3 100%);
  box-shadow: 5px 5px 0 #c3cdfb;
}

.profile::before {
  content: ""; position: absolute; left: -12px; bottom: -13px;
  width: 30px; height: 30px; border: 2px solid #dfe5f2;
  border-radius: 50%; background: #e8edff;
}

.star {
  position: absolute; top: -23px; right: -12px; width: 54px; height: 54px;
  fill: #5267d8; stroke: #5267d8; stroke-width: 3;
  stroke-linejoin: round; transform: rotate(12deg);
}

.avatar {
  display: grid; place-items: center; overflow: hidden;
  width: 104px; height: 104px; margin: 0 auto 14px;
  border: 4px solid #ffffff; border-radius: 50%;
  background: #eef2ff; box-shadow: 0 0 0 2px #5267d8, 3px 4px 0 2px #5267d8;
  font-size: 48px; font-weight: 700;
}

.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

h1 {
  margin: 0 0 7px; font-size: clamp(34px, 9vw, 46px);
  line-height: 1; font-weight: 700; letter-spacing: -.045em;
  color: #2b3a8f;
}

.bio {
  display: inline-block; max-width: 32ch; margin: 4px auto 0; padding: 6px 14px;
  border: 2px solid #dfe5f2; border-radius: 999px; background: #ffffff;
  font-size: 15px; font-weight: 700; line-height: 1.3; color: #5267d8;
}

.sparkles {
  display: flex; justify-content: center; align-items: center;
  gap: 12px; margin: 17px 0;
}

.sparkles svg { width: 19px; height: 19px; }
.sparkles .sp { fill: var(--ink); }

.sparkles .sp:nth-child(3) {
  width: 25px; height: 25px; fill: #5267d8;
  stroke: #5267d8; stroke-width: 1.5;
}

.sparkles .pl { fill: none; stroke: #5267d8; stroke-width: 3; stroke-linecap: square; }

.links { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.links li { position: relative; animation: rise-in .45s both; }
.links li:nth-child(2) { animation-delay: .05s; }
.links li:nth-child(3) { animation-delay: .1s; }
.links li:nth-child(4) { animation-delay: .15s; }
.links li:nth-child(5) { animation-delay: .2s; }

.links li::after {
  content: ""; position: absolute; z-index: 2; width: 30px; height: 30px;
  pointer-events: none; background-size: contain; background-repeat: no-repeat;
}

.links li:nth-child(odd)::after {
  top: -13px; right: 54px; transform: rotate(-10deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,4 61,30 88,18 76,45 96,50 76,55 88,82 61,70 50,96 39,70 12,82 24,55 4,50 24,45 12,18 39,30' fill='%23E8EDFF' stroke='%235267D8' stroke-width='7' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.links li:nth-child(even)::after {
  bottom: -15px; left: -7px; width: 27px; height: 34px; transform: rotate(8deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='58,2 18,56 46,56 36,98 84,40 54,40' fill='%235267D8' stroke='%235267D8' stroke-width='7' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.link {
  display: grid; grid-template-columns: 50px minmax(0, 1fr);
  align-items: center; gap: 12px; min-height: 82px; padding: 10px 12px;
  border: 2px solid #dfe5f2; border-radius: 15px;
  background: #5267d8; color: #ffffff; text-decoration: none;
  cursor: pointer; box-shadow: 5px 5px 0 #2f3f9e;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.link:hover, .link:focus-visible {
  transform: translate(2px, 2px); box-shadow: 3px 3px 0 #2f3f9e;
  background: #4054c4; color: #ffffff;
}

.link:active { transform: translate(5px, 5px); box-shadow: 0 0 0 #2f3f9e; }
.link:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.logo {
  display: grid; place-items: center; overflow: hidden;
  width: 50px; height: 50px; border: 2px solid #dfe5f2;
  border-radius: 11px; background: var(--paper); color: var(--ink);
  font-size: 24px; font-weight: 700;
}

.text { min-width: 0; }

.title {
  display: block; font-size: 19px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.15;
}

.desc {
  display: block; margin-top: 3px; font-size: 13px;
  font-weight: 500; line-height: 1.25; opacity: .94;
}

.shapes {
  display: flex; justify-content: center; align-items: center;
  gap: 18px; margin-top: 28px;
}

.sh-circle {
  width: 28px; height: 28px; border: 2px solid #dfe5f2;
  border-radius: 50%; background: #e8edff;
}

.sh-square {
  width: 27px; height: 27px; border: 2px solid #dfe5f2;
  background: var(--paper); transform: rotate(14deg);
}

.sh-tri {
  width: 34px; height: 31px; fill: #5267d8;
  stroke: #5267d8; stroke-width: 7; stroke-linejoin: round;
}

.sh-half {
  width: 38px; height: 19px; border: 2px solid #dfe5f2;
  border-bottom: 0; border-radius: 38px 38px 0 0; background: var(--paper);
}

.zigzag {
  display: block; width: 100px; height: 20px; margin: 18px auto 0;
  fill: none; stroke: #5267d8; stroke-width: 3; stroke-linecap: square;
}

footer { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 700; }

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

@media (max-width: 360px) {
  main { padding-right: 15px; padding-left: 15px; }
  .profile { padding: 21px 14px 19px; }
  .link { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; min-height: 74px; padding: 9px; }
  .logo { width: 46px; height: 46px; }
  .title { font-size: 17px; }
  .desc { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.logo svg { display: block; width: 36px; height: 36px; }
