@keyframes celebrate {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.04);
  }
  50% {
    transform: scale(0.97);
  }
  75% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

body.page-wishes {
  position: relative;
}

.wind {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.closeBubble {
  top: 3vh;
  left: 3vh;
}

.pageCard {
  width: min(92vw, 820px);
  animation: fadeIn 0.45s ease-out forwards;
}

.pageHeader,
.wishComposer {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doneToggle {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.wishComposer {
  position: relative;
  margin-top: 26px;
  padding: 14px;
  display: flex;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 252, 251, 0.94), rgba(250, 246, 243, 0.74)),
    radial-gradient(circle at top right, rgba(228, 198, 203, 0.34), transparent 40%);
  border: 1px solid rgba(196, 134, 142, 0.16);
  box-shadow: 0 24px 60px -42px rgba(70, 49, 55, 0.55);
  animation: slideUp 0.5s ease-out forwards;
}

.wishComposer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 48%);
  pointer-events: none;
}

.wishInput {
  position: relative;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 17px;
  color: var(--deep);
  outline: none;
}

.submitButton {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--deep);
  color: #fff9f7;
  font-size: 15px;
  box-shadow: 0 18px 32px -24px rgba(69, 55, 61, 0.72);
}

.errorText {
  margin-top: 14px;
}

.wishList,
.donePanel {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.wishCard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 251, 0.82), rgba(255, 247, 244, 0.62));
  border: 1px solid transparent;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  animation: slideUp 0.45s ease-out forwards;
}

.wishCard.isFresh {
  animation: cardSlideIn 0.55s ease-out;
}

.wishCard.isCelebrating {
  animation: celebrate 0.48s ease-out;
}

.wishCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -30px rgba(70, 49, 55, 0.28);
  border-color: rgba(196, 134, 142, 0.22);
}

.wishToggle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(196, 134, 142, 0.32);
  background: transparent;
  color: transparent;
  flex-shrink: 0;
}

.wishToggle.isDone {
  background: rgba(196, 134, 142, 0.16);
  color: var(--primary);
}

.wishText {
  flex: 1;
  font-size: 17px;
  color: var(--deep);
  white-space: normal;
  line-height: 1.45;
}

.wishText.isDone {
  color: var(--muted);
  text-decoration: line-through;
}

.wishAuthor {
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(196, 134, 142, 0.12);
  color: var(--primary);
  font-size: 12px;
}

.doneSection {
  margin-top: 26px;
}

.doneToggle {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
}

.donePanel.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .wishComposer {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .closeBubble {
    top: 14px;
    left: 14px;
  }
}
