:root {
  --ink: #11151b;
  --muted: #6f7782;
  --line: rgba(112, 127, 145, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #e9eef4;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #e9eef4;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: max(22px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 10% -5%, rgba(255, 255, 255, 0.98) 0 19%, transparent 46%),
    radial-gradient(circle at 92% 8%, rgba(154, 171, 191, 0.24), transparent 38%),
    radial-gradient(circle at 12% 96%, rgba(111, 132, 157, 0.12), transparent 38%),
    linear-gradient(138deg, #fcfdff 0%, #eef2f6 48%, #dfe6ee 100%);
}

.page-shell::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -28%;
  background: linear-gradient(
    118deg,
    transparent 12%,
    rgba(109, 128, 151, 0.13) 31%,
    rgba(255, 255, 255, 0.76) 49%,
    rgba(78, 99, 124, 0.09) 68%,
    transparent 86%
  );
  background-size: 180% 180%;
  filter: blur(82px);
  opacity: 0.72;
  animation: gradient-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.profile-card {
  position: relative;
  width: min(100%, 448px);
  min-height: calc(100vh - 44px);
  min-height: calc(100svh - 44px);
  margin: 0 auto;
  padding: 28px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.88), rgba(245, 248, 251, 0.68));
  box-shadow:
    0 1px 2px rgba(24, 34, 47, 0.04),
    0 24px 68px rgba(35, 49, 68, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(30px) saturate(112%);
  -webkit-backdrop-filter: blur(30px) saturate(112%);
  animation: card-in 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-shell {
  display: grid;
  width: 114px;
  height: 114px;
  place-items: center;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(226, 231, 239, 0.78));
  box-shadow:
    0 2px 6px rgba(35, 49, 68, 0.08),
    0 14px 32px rgba(35, 49, 68, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.avatar-photo {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 34%;
}

.eyebrow {
  margin: 0 0 4px;
  color: #8b9098;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.21em;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 9.5vw, 40px);
  font-weight: 640;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.handle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.links {
  display: grid;
  gap: 9px;
  margin-top: 23px;
}

.glass-link {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  min-height: 66px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  outline: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.84));
  box-shadow:
    0 1px 2px rgba(24, 34, 47, 0.04),
    0 8px 20px rgba(35, 49, 68, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  -webkit-tap-highlight-color: transparent;
  animation: link-in 520ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.glass-link:nth-child(1) { animation-delay: 80ms; }
.glass-link:nth-child(2) { animation-delay: 125ms; }
.glass-link:nth-child(3) { animation-delay: 170ms; }
.glass-link:nth-child(4) { animation-delay: 215ms; }
.glass-link:nth-child(5) { animation-delay: 260ms; }
.glass-link:nth-child(6) { animation-delay: 305ms; }

.link-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(112, 127, 145, 0.15);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f1f4f7);
  box-shadow:
    0 1px 2px rgba(24, 34, 47, 0.04),
    0 4px 11px rgba(35, 49, 68, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.link-icon svg {
  width: 22px;
  height: 22px;
}

.link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-left: 11px;
}

.link-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 610;
  letter-spacing: -0.018em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-copy small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  justify-self: end;
  color: #87909b;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: #92969d;
  font-size: 10.5px;
  letter-spacing: 0.01em;
}

@media (hover: hover) {
  .glass-link {
    transition:
      border-color 180ms ease,
      box-shadow 180ms ease,
      background 180ms ease;
  }

  .link-icon,
  .arrow-icon {
    transition:
      transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1),
      box-shadow 180ms ease;
  }

  .glass-link:hover {
    border-color: rgba(92, 109, 130, 0.23);
    background: #ffffff;
    box-shadow:
      0 2px 4px rgba(24, 34, 47, 0.05),
      0 13px 28px rgba(35, 49, 68, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.98);
  }

  .glass-link:hover .link-icon {
    transform: translateX(1px);
    box-shadow:
      0 1px 2px rgba(24, 34, 47, 0.04),
      0 6px 14px rgba(35, 49, 68, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.98);
  }

  .glass-link:hover .arrow-icon {
    transform: translateX(2px);
  }
}

.glass-link:active {
  border-color: rgba(92, 109, 130, 0.22);
  background: rgba(246, 248, 251, 0.96);
  box-shadow:
    0 1px 2px rgba(24, 34, 47, 0.04),
    0 4px 10px rgba(35, 49, 68, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.glass-link:focus-visible {
  box-shadow:
    0 0 0 3px rgba(71, 93, 120, 0.17),
    0 8px 20px rgba(35, 49, 68, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

@media (min-width: 700px) {
  .page-shell {
    display: grid;
    place-items: center;
    padding: 40px 20px;
  }

  .profile-card {
    min-height: auto;
    padding: 34px 24px 22px;
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-inline: 8px;
  }

  .profile-card {
    padding-inline: 12px;
    border-radius: 30px;
  }

  .glass-link {
    grid-template-columns: 43px 1fr 20px;
    padding-right: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

@keyframes gradient-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.04); }
}
