:root {
  --page-max-width: 560px;
  --text: #fffafc;
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --stroke: rgba(255, 255, 255, 0.52);
  --shadow: rgba(25, 10, 18, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  height: 100%;
  overflow-x: hidden;
  background: #171114;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  letter-spacing: 0;
  background: #171114;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.profile-page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: end center;
  overflow: hidden;
  padding:
    max(34px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(48px, calc(env(safe-area-inset-bottom) + 38px))
    max(18px, env(safe-area-inset-left));
}

.portrait-backdrop,
.portrait-backdrop::after,
.portrait-backdrop img {
  position: fixed;
  inset: 0;
}

.portrait-backdrop {
  z-index: -2;
  overflow: hidden;
  background: #171114;
}

.portrait-backdrop::after {
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(15, 9, 12, 0.08) 0%, rgba(15, 9, 12, 0.22) 43%, rgba(15, 9, 12, 0.78) 100%),
    radial-gradient(circle at 50% 67%, rgba(18, 10, 15, 0.08) 0%, rgba(18, 10, 15, 0.5) 62%, rgba(18, 10, 15, 0.82) 100%);
  pointer-events: none;
}

.portrait-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  filter: saturate(1.04) contrast(1.02);
}

.profile-card {
  display: grid;
  justify-items: center;
  width: min(100%, 420px);
  margin-block-end: clamp(16px, 7vh, 78px);
  text-align: center;
}

.profile-photo {
  width: clamp(190px, 54vw, 220px);
  aspect-ratio: 1;
  height: auto;
  display: block;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow:
    0 22px 54px var(--shadow),
    0 4px 18px rgba(255, 255, 255, 0.2);
}

.creator-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin: 17px 0 20px;
  color: var(--text);
  font-size: clamp(32px, 9vw, 43px);
  font-weight: 500;
  line-height: 1.05;
  text-shadow: 0 3px 18px rgba(20, 8, 14, 0.48);
}

.verified-badge {
  flex: 0 0 auto;
  width: clamp(24px, 6.8vw, 30px);
  height: clamp(24px, 6.8vw, 30px);
  margin-block-start: 3px;
  fill: #1d9bf0;
  filter: drop-shadow(0 2px 7px rgba(4, 14, 25, 0.32));
}

.verified-badge .check {
  fill: #ffffff;
}

.cta-button {
  display: inline-grid;
  width: min(100%, 348px);
  min-height: 58px;
  place-items: center;
  padding: 17px 28px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  background: var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 18px 42px rgba(22, 8, 15, 0.28);
  backdrop-filter: blur(17px) saturate(1.3);
  -webkit-backdrop-filter: blur(17px) saturate(1.3);
  transform: translateZ(0);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 20px 48px rgba(22, 8, 15, 0.34);
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(1px) scale(0.985);
}

.cta-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 4px;
}

.fallback-message {
  max-width: 310px;
  margin: 14px 0 0;
  color: rgba(255, 250, 252, 0.86);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 0 2px 11px rgba(15, 6, 12, 0.48);
}

@media (min-width: 700px) {
  .profile-page::before {
    position: fixed;
    inset: 0;
    z-index: -3;
    content: "";
    background:
      linear-gradient(90deg, rgba(12, 8, 10, 0.74), rgba(12, 8, 10, 0.16) 35%, rgba(12, 8, 10, 0.16) 65%, rgba(12, 8, 10, 0.74));
  }

  .portrait-backdrop {
    left: 50%;
    width: min(100vw, var(--page-max-width));
    transform: translateX(-50%);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.36);
  }

  .profile-card {
    margin-block-end: clamp(24px, 8vh, 92px);
  }
}

@media (max-height: 720px) {
  .profile-card {
    margin-block-end: 4vh;
  }

  .profile-photo {
    width: clamp(168px, 47vw, 204px);
    border-width: 7px;
  }

  .creator-name {
    margin-block: 13px 16px;
  }
}

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