/* --- YILDIZLARI BİRLEŞTİR (AŞKIN KALBİ) - PREMIUM DARK THEME --- */
.stars-canvas-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  /* Karanlık Uzay Gradienti */
  background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
  border-radius: 25px;
  overflow: hidden;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.3);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 221, 89, 0.1);
}

/* Arkaplandaki Nebula Particle Efekti */
#stars-nebula {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(white, rgba(255, 255, 255, 0.2) 2px, transparent 3px),
    radial-gradient(white, rgba(255, 255, 255, 0.15) 1px, transparent 2px),
    radial-gradient(white, rgba(255, 255, 255, 0.1) 2px, transparent 3px);
  background-size:
    550px 550px,
    350px 350px,
    250px 250px;
  background-position:
    0 0,
    40px 60px,
    130px 270px;
  opacity: 0.3;
  z-index: 1;
}

#stars_premium-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  z-index: 10; /* En üstte */
}

/* Bulmacanın Kalbi: Fotoğraf Çerçevesi */
.stars-heart-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  z-index: 5;
  /* CSS ile Kalp Şekli Verme */
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(255, 221, 89, 0.6);
  border: 4px solid #fff;
  clip-path: path(
    "M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z"
  );
  clip-path: polygon(
    50% 0%,
    100% 35%,
    82% 100%,
    50% 85%,
    18% 100%,
    0% 35%
  ); /* Alternatif sığmazsa */
  /* Jilet gibi sığması için path kullanıyoruz: */
  clip-path: path(
    "M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"
  );
}

.stars-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inherit; /* Fotoğraf da kalp şeklinde kesilsin */
}

#stars-reveal_premium {
  position: absolute;
  bottom: -60px; /* Altta beklesin */
  width: 100%;
  text-align: center;
  z-index: 15;
  transition: bottom 0.6s ease;
}

#stars-reveal_premium.show {
  bottom: 20px;
}

.stars-final-text {
  font-family: "Dancing Script", cursive;
  font-size: 2.2rem;
  color: #ffdd59;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  animation: fadeInOutHug 4s ease forwards;
}

@keyframes fadeInOutHug {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@media screen and (max-width: 768px) {
  .stars-heart-frame {
    width: 150px;
    height: 150px;
  }
  .stars-final-text {
    font-size: 1.8rem;
  }
}