/* Final: Doğum günü pastası, mum üfleme ve kutlama */
.final-bolum {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 50px;
}

.pasta-sahne {
  margin-top: 46px;
  display: flex;
  justify-content: center;
}

.pasta-kutu {
  position: relative;
  width: 240px;
  height: 205px;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.65));
  transition: transform 0.25s ease;
}
.pasta-kutu:hover {
  transform: scale(1.04);
}
.pasta-kutu:active {
  transform: scale(0.97);
}

/* Mumlar */
.mumlar {
  display: flex;
  gap: 28px;
  margin-bottom: -4px;
  z-index: 4;
}
.mum {
  position: relative;
  width: 12px;
  height: 44px;
  border-radius: 4px 4px 2px 2px;
  background: repeating-linear-gradient(
    45deg,
    #fff6ea,
    #fff6ea 5px,
    var(--gul) 5px,
    var(--gul) 10px
  );
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.mum::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  background: #3a232b;
}

.alev {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 15px;
  height: 22px;
  margin-left: -7.5px;
  border-radius: 50% 50% 38% 38%;
  background: radial-gradient(circle at 50% 70%, #fff 15%, #ffd56b 50%, #ff7b29 88%);
  box-shadow:
    0 0 16px 4px rgba(255, 196, 77, 0.75),
    0 0 34px 10px rgba(232, 69, 107, 0.45);
  transform-origin: bottom center;
  animation: titrek 0.9s ease-in-out infinite alternate;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mum:nth-child(2) .alev { animation-delay: -0.3s; }
.mum:nth-child(3) .alev { animation-delay: -0.6s; }

@keyframes titrek {
  0% { transform: rotate(-4deg) scale(0.96, 1.04); }
  50% { transform: rotate(3deg) scale(1.04, 0.95); }
  100% { transform: rotate(-2deg) scale(1, 1.06); }
}

.duman {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}

/* Mum söndüğünde */
.pasta-kutu.sondu .alev {
  opacity: 0;
  transform: scale(0.2) translateY(8px);
  animation: none;
}
.pasta-kutu.sondu .duman {
  animation: tutun 1.4s ease-out forwards;
}
@keyframes tutun {
  0% { opacity: 0.75; transform: translateY(0) scale(0.8); }
  100% { opacity: 0; transform: translateY(-34px) translateX(8px) scale(2.4); }
}

/* Pasta katları */
.pasta-ust {
  position: relative;
  width: 168px;
  height: 58px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #ffdbe4 0%, #f7a1b5 36%, #d95377 37%, #b82e55 100%);
  z-index: 3;
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.55);
}
.krema-damlalar {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 8px;
}
.krema-damlalar span {
  width: 18px;
  height: 20px;
  border-radius: 0 0 12px 12px;
  background: #f7a1b5;
}
.krema-damlalar span:nth-child(even) {
  height: 14px;
}

.pasta-alt {
  width: 208px;
  height: 66px;
  margin-top: -4px;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, #ffe7ef 0%, #f6c2d0 28%, #a6264b 29%, #7d1836 100%);
  z-index: 2;
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.45);
}

.pasta-tabak {
  width: 240px;
  height: 14px;
  margin-top: -2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8c3a5, #fff8ee 50%, #c9b190);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Kutlama mesajı */
.kutlama-mesaj {
  max-width: 560px;
  margin-top: 32px;
  animation: kutlama-belir 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes kutlama-belir {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.kutlama-baslik {
  font-family: var(--suslu);
  font-size: clamp(38px, 8vw, 60px);
  color: var(--altin);
  line-height: 1.15;
  text-shadow: 0 6px 24px rgba(246, 209, 134, 0.35);
}
.kutlama-alt {
  margin-top: 12px;
  font-family: var(--el);
  font-size: clamp(21px, 3.6vw, 27px);
  color: var(--krem);
  line-height: 1.45;
}
.final-dugmeler {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.alt-bilgi {
  margin-top: 80px;
  font-family: var(--el);
  font-size: 19px;
  color: rgba(251, 241, 228, 0.48);
}
