* {
  box-sizing: border-box;
}

:root {
  --page-bg: #d7d3cf;
  --panel-bg: #efc6d5;
  --panel-text: #ffffff;
  --panel-muted: rgba(255,255,255,.68);
  --card-radius: 26px;
  --link-radius: 18px;
  --shadow-strong: 0 24px 60px rgba(0,0,0,.28);
  --shadow-soft: 0 14px 34px rgba(0,0,0,.18);
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: #111;
}

body {
  position: relative;
  overflow-x: hidden;
}

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

.bg-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-image {
  position: absolute;
  inset: -6%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(40px) saturate(0.95) brightness(0.9);
  transform: scale(1.08);
  opacity: 0.92;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 35%, rgba(0,0,0,0.08) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.16), rgba(0,0,0,.12));
  backdrop-filter: saturate(0.95);
}

.page {
  position: relative;
  min-height: 100vh;
  padding: 28px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.page.visible {
  opacity: 1;
}

.phone-shell {
  width: min(100%, 480px);
  border-radius: 30px;
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: var(--shadow-strong);
}

.hero {
  position: relative;
  min-height: 510px;
  display: flex;
  align-items: flex-end;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 42%, rgba(240, 198, 213, 0.90) 70%, rgba(239,198,213,1) 100%);
}

.profile {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px 24px 24px;
  text-align: center;
  color: var(--panel-text);
}

.avatar {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.name {
  margin: 0;
  font-size: 3rem;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.handle {
  display: none;
}

.bio {
  margin: 18px auto 0;
  max-width: 360px;
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 600;
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.socials {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-chip {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,.92);
  color: #121212;
  box-shadow: var(--shadow-soft);
  font-size: 0.96rem;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.social-chip:hover {
  transform: translateY(-2px);
}

.social-chip.icon-only {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.social-chip svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.content {
  padding: 10px 18px 26px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;
  min-height: 160px;
  aspect-ratio: 3 / 2;
  border-radius: var(--link-radius);
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  background: #191919;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.link-card.media {
  background: #191919;
}

.link-card.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.5s ease;
  will-change: transform;
  z-index: 0;
}

.link-card.media:hover::before {
  transform: scale(1.08);
}

.link-card.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.72) 100%);
  z-index: 1;
}

.link-card.plain {
  background: linear-gradient(180deg, rgba(22,22,24,.95), rgba(16,16,18,.95));
}

.link-inner {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  text-align: center;
  color: white;
}

.link-card.media-title-only .link-inner {
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.link-card.media-title-only .link-title {
  width: 100%;
}

.link-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,.32);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.link-description {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.link-card:hover .link-title,
.link-card:hover .link-description {
  color: #ff5c63;
  opacity: 0.9;
}

.link-button {
  width: fit-content;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: #ff5c63;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(255,92,99,.3);
  cursor: pointer;
}

.link-inner .link-button {
  align-self: center;
}

.full-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #f00707;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(224,0,0,.28);
}

.full-button .emoji {
  font-size: 1.2rem;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-bottom: 6px;
  color: rgba(255,255,255,.42);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer a {
  opacity: 0.65;
}

.footer-divider {
  opacity: 0.3;
}

.info-shell {
  width: min(100%, 480px);
  border-radius: 30px;
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: var(--shadow-strong);
}

.info-content {
  padding: 28px 24px 24px;
  color: var(--panel-text);
}

.info-title {
  margin: 0 0 18px;
  font-size: 3rem;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.info-body {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

.info-body p:first-child {
  margin-top: 0;
}

.info-body p:last-child {
  margin-bottom: 0;
}

.back-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #f00707;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(224,0,0,.28);
}

@media (max-width: 560px) {
  .page {
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .info-shell {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .hero {
    min-height: 500px;
  }

  .profile {
    padding: 24px 22px 22px;
  }

  .name {
    font-size: 2.8rem;
  }

  .handle {
    font-size: 1.3rem;
  }

  .bio {
    font-size: 1.05rem;
  }

  .content {
    padding: 8px 14px 24px;
  }

  .info-content {
    padding: 24px 22px 22px;
  }

  .info-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: 455px;
  }

  .name {
    font-size: 2.35rem;
  }

  .handle {
    font-size: 1.12rem;
  }

  .bio {
    font-size: 0.98rem;
    max-width: 310px;
  }

  .link-card,
  .link-inner {
    min-height: 145px;
  }

  .full-button {
    min-height: 52px;
    font-size: 0.96rem;
  }

  .footer {
    gap: 10px;
    font-size: 0.73rem;
  }

  .info-title {
    font-size: 2.35rem;
  }

  .info-body {
    font-size: 0.96rem;
  }

  .back-link {
    min-height: 52px;
    font-size: 0.96rem;
  }
}
