* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

body::before {
  position: fixed;
  inset: -52px;
  z-index: 0;
  background: url('/delia-cover-bw.png') center 52% / cover no-repeat;
  content: '';
  filter: blur(35px) brightness(0.24);
  pointer-events: none;
  transform: scale(1.1);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.24);
  content: '';
  pointer-events: none;
}

.link-page {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
}

/* First page */

.home-body {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.home-page {
  display: flex;
  height: 100dvh;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2.4vh, 24px) 0;
}

.home-frame {
  display: grid;
  width: min(100%, 566px);
  height: 100%;
  max-height: 1020px;
  grid-template-rows: minmax(0, 1.72fr) minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.89);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.66);
}

.cover {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.68)),
    url('/delia-cover-bw.png') center / cover no-repeat;
}

.cover::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/delia-cover-bw.png') center / contain no-repeat;
  content: '';
}

.cover::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 190px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.98));
  content: '';
}

.cover-copy {
  position: absolute;
  right: 20px;
  bottom: 34px;
  left: 20px;
  z-index: 2;
  text-align: center;
}

.creator-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.05;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.76), 0 12px 30px rgba(0, 0, 0, 0.46);
}

.verified-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 180ms ease, transform 180ms ease;
}

.instagram-link { background-image: url('/instagram.png'); }
.telegram-link { background-image: url('/telegram.png'); }

.social-link:hover,
.social-link:focus-visible {
  opacity: 0.92;
  outline: none;
  transform: translateY(-2px);
}

.entry-wrap {
  display: flex;
  min-height: 0;
  align-items: center;
  padding: 8px 10px 12px;
}

.entry-photo-card {
  position: relative;
  display: flex;
  width: 538px;
  height: min(100%, calc((100vw - 20px) * 0.5948));
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 30px;
  background: #111 url('/delia-card-rose.png') center bottom / cover no-repeat;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.25);
  isolation: isolate;
  animation: entryBounce 2.3s ease-in-out infinite;
}

.entry-photo-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.34) 48%, rgba(0, 0, 0, 0.16));
  content: '';
}

.entry-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #000;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  animation: ctaGlow 2.3s ease-in-out infinite;
}

.entry-photo-card:hover,
.entry-photo-card:focus-visible {
  outline: none;
  filter: brightness(1.08) saturate(1.04);
}

/* Second page */

.profile-page {
  display: flex;
  width: min(100%, 566px);
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
}

.profile-panel {
  width: 100%;
  padding: 30px 20px 24px;
  border-radius: 30px;
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.profile-avatar {
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 50%;
  background: url('/delia-avatar.png') 100% 65% / 180% auto no-repeat;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.profile-panel h1 {
  margin-bottom: 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.profile-panel > p {
  max-width: 330px;
  margin: 0 auto 28px;
  color: #aaa;
  font-size: 15px;
  line-height: 1.45;
}

.destination-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 8px;
}

.destination {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 750;
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.destination:hover,
.destination:focus-visible {
  opacity: 0.94;
  outline: none;
}

.exclusive-link {
  min-height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 26px rgba(255, 143, 209, 0.18);
  color: #000;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  animation: exclusiveWiggle 2.4s ease-in-out infinite;
}

.exclusive-link::after {
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.18) 35%, rgba(255, 255, 255, 0.58) 50%, rgba(255, 255, 255, 0.18) 65%, transparent);
  content: '';
  pointer-events: none;
  transform: skewX(-18deg);
  animation: shineAcross 3.1s ease-in-out infinite;
}

.private-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #171717;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
}

.private-link:hover,
.private-link:focus-visible {
  transform: translateY(-2px);
}

@keyframes entryBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-10px) scale(1.015); }
  36% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.006); }
  64% { transform: translateY(0) scale(1); }
}

@keyframes ctaGlow {
  0%, 100% { background: rgba(255, 255, 255, 0.74); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.18); }
  50% { background: rgba(255, 255, 255, 0.87); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 22px rgba(255, 143, 209, 0.35); }
}

@keyframes exclusiveWiggle {
  0%, 42%, 100% { transform: translateX(0) rotate(0) scale(1); }
  8% { transform: translateX(-5px) rotate(-2.2deg) scale(1.012); }
  16% { transform: translateX(5px) rotate(2.2deg) scale(1.018); }
  24% { transform: translateX(-4px) rotate(-1.6deg) scale(1.012); }
  32% { transform: translateX(4px) rotate(1.6deg) scale(1.016); }
}

@keyframes shineAcross {
  0%, 36% { left: -120%; }
  68%, 100% { left: 130%; }
}

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

  .home-frame {
    height: 100dvh;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .cover {
    height: auto;
    background-position: center;
  }

  .creator-name {
    font-size: 36px;
  }

  .verified-badge {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .social-links {
    gap: 11px;
    margin-top: 10px;
  }

  .social-link {
    width: 30px;
    height: 30px;
  }

  .entry-wrap {
    padding: 8px;
  }

  .entry-photo-card {
    width: 100%;
    height: min(100%, calc((100vw - 16px) * 0.5948));
    margin: 0 auto;
    border-radius: 26px;
  }

  .entry-cta {
    padding: 13px 26px;
    font-size: 21px;
  }

  .profile-page {
    padding: 24px 12px;
  }

  .profile-panel {
    padding: 28px 16px 22px;
    border-radius: 24px;
  }

  .profile-panel h1 {
    font-size: 31px;
  }

  .profile-panel > p {
    margin-bottom: 26px;
  }

  .exclusive-link {
    min-height: 62px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-photo-card,
  .entry-cta,
  .social-link,
  .destination,
  .exclusive-link,
  .exclusive-link::after {
    animation: none;
    transition: none;
  }
}
