:root {
  --surface: #3d1a32;
  --surface-deep: #2a1224;
  --text: #fff5fa;
  --text-dim: #d89bb8;
  --accent: #ff6eb4;
  --accent-glow: rgb(255 110 180 / 35%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface-deep);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgb(255 120 180 / 28%), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgb(180 60 140 / 22%), transparent 45%),
    linear-gradient(180deg, #351428 0%, var(--surface-deep) 100%);
}

.page {
  max-width: 26rem;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.profile {
  padding: 1.1rem 1.1rem 1.35rem;
  text-align: center;
  background: var(--surface);
}

.banner-wrap {
  border-radius: 1.35rem;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 8px 32px rgb(80 20 50 / 45%);
}

.banner-wrap--art {
  aspect-ratio: 3 / 1;
  position: relative;
}

.banner-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 5.25rem;
  background: linear-gradient(
    135deg,
    #ff9ecf 0%,
    #e84a9a 35%,
    #9b3d7a 65%,
    #4a1a3a 100%
  );
  overflow: hidden;
}

.banner-art__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.75;
}

.banner-art__orb--1 {
  width: 55%;
  height: 70%;
  top: -20%;
  left: -10%;
  background: rgb(255 200 230 / 90%);
}

.banner-art__orb--2 {
  width: 45%;
  height: 55%;
  bottom: -15%;
  right: -5%;
  background: rgb(255 100 160 / 85%);
}

.banner-art__orb--3 {
  width: 30%;
  height: 40%;
  top: 30%;
  right: 25%;
  background: rgb(255 240 250 / 70%);
}

.banner-art__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgb(255 255 255 / 18%) 48%,
    transparent 56%
  );
  animation: banner-shine 6s ease-in-out infinite;
}

@keyframes banner-shine {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-8%);
  }
  50% {
    opacity: 0.9;
    transform: translateX(8%);
  }
}

.avatar {
  width: 8.25rem;
  height: 8.25rem;
  margin: -3.35rem auto 0;
  border-radius: 50%;
  border: none;
  object-fit: cover;
  object-position: center 20%;
  position: relative;
  z-index: 1;
  filter: brightness(1.1) contrast(1.04) saturate(1.05);
  box-shadow: 0 10px 28px rgb(40 10 30 / 55%);
}

.name {
  margin: 0.85rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.65rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 2px 24px var(--accent-glow);
}

.handle {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dim);
}

.cta {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.links {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 0 1rem 0.5rem;
  background: var(--surface);
}

.links--lain .card--featured {
  grid-column: 1 / -1;
  min-height: 12.25rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 10.75rem;
  border-radius: 1.2rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center 20%;
  filter: brightness(1.12) contrast(1.04) saturate(1.06);
  z-index: 0;
}

.card--twitter::before {
  background-position: center 15%;
}

.card--telegram::before {
  background-position: center 18%;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgb(60 15 40 / 50%);
  }
}

.card:active {
  transform: scale(0.98);
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(60 10 40 / 4%) 0%,
    rgb(40 8 28 / 22%) 55%,
    rgb(25 5 18 / 52%) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.card__icon {
  position: absolute;
  left: 0.65rem;
  bottom: 2.65rem;
  transform: none;
  z-index: 2;
}

.card__icon--brand {
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon--brand img,
.card__icon--brand svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 50%));
}

.card__icon svg {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 50%));
}

.card__icon--instagram svg {
  width: 2.2rem;
  height: 2.2rem;
}

.card__icon--telegram svg {
  width: 2.15rem;
  height: 2.15rem;
}

.card__label {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 8px rgb(0 0 0 / 55%);
}

.card__sub {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.footer {
  padding: 0.85rem 1rem max(1.1rem, env(safe-area-inset-bottom));
  text-align: center;
  background: var(--surface);
  font-size: 0.72rem;
  color: rgb(255 220 235 / 38%);
  letter-spacing: 0.06em;
}

@media (min-width: 480px) {
  .links {
    gap: 0.95rem;
    padding: 0 1.15rem 0.5rem;
  }

  .card {
    min-height: 11.75rem;
  }

  .links--lain .card--featured {
    min-height: 13.25rem;
  }
}
