:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --parallax-y: 0px;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.5);
  --subtle: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.12);
  --button: rgba(255, 255, 255, 0.06);
  --button-hover: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overscroll-behavior-y: none;
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: -40vh 0;
  background: var(--bg);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.profile {
  position: relative;
  z-index: 0;
  width: min(100%, 420px);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  isolation: isolate;
  overflow: hidden;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 310px;
  max-height: 60svh;
  overflow: hidden;
  background: #171111;
}

.hero picture,
.hero img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: center 55%;
  transform: translate3d(0, var(--parallax-y), 0) scale(1.06);
  transform-origin: center 55%;
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: auto 0 0;
  height: 124px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0), var(--bg));
}

.hero__copy {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  text-align: center;
}

.hero__copy h1 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 1px;
}

.hero__copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.5px;
}

.links {
  flex: 0 0 auto;
  padding: 20px 24px 28px;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  margin-bottom: 10px;
  padding: 14px 18px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: var(--button);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.link:hover {
  background: var(--button-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.link--featured {
  background: rgba(249, 83, 198, 0.1);
  border-color: rgba(249, 83, 198, 0.34);
}

.link--featured:hover {
  background: rgba(249, 83, 198, 0.14);
  border-color: rgba(249, 83, 198, 0.46);
}

.link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.link__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
}

.link__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.link__icon--telegram {
  background: #2aabee;
}

.link__icon--fanvue {
  background: linear-gradient(135deg, #f953c6, #b91d73);
}

.link__icon--instagram {
  background: linear-gradient(135deg, #405de6, #5b51d8, #833ab4, #c13584, #e1306c, #fd1d1d, #f56040, #f77737, #fcaf45, #ffdc80);
}

.link__text {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.link__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.link__subtitle {
  min-width: 0;
  overflow: hidden;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(249, 83, 198, 0.2);
  color: #f953c6;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.link__chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: rgba(255, 255, 255, 0.3);
}

.link__chevron path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-domain {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-align: center;
}

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    padding: 28px;
  }

  .profile {
    min-height: min(820px, calc(100svh - 56px));
    border: 0.5px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-height: 700px) {
  .hero {
    min-height: 236px;
  }

  .links {
    padding: 16px 20px 20px;
  }

  .link {
    min-height: 62px;
    padding: 10px 14px;
  }

  .footer-domain {
    margin-top: 12px;
  }
}

@media (max-width: 340px) {
  .links {
    padding-right: 16px;
    padding-left: 16px;
  }

  .link {
    gap: 10px;
    padding-right: 12px;
    padding-left: 12px;
  }
}
