[hidden] { display: none !important; }
.birthday-gift {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: 88px; max-width: 100%; padding: 28px 22px 14px; margin: 12px 7px;
  border: 1px solid #b74668; border-radius: 14px; color: #76223e;
  background: radial-gradient(circle, #fff9 1.5px, transparent 2px) 0 0 / 13px 13px,
    repeating-linear-gradient(45deg, #e9a9bd 0 12px, #f6c9d6 12px 24px);
  font: inherit; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 22px #9e365b33; animation: birthday-beckon 1.9s ease-in-out infinite;
}
.birthday-gift::before, .birthday-gift::after { content: ''; position: absolute; z-index: -1; background: linear-gradient(90deg, #a63256, #d9678b 45%, #aa3156); box-shadow: 0 1px 4px #76223e33; }
.birthday-gift::before { inset: 0 auto 0 45%; width: 25px; }
.birthday-gift::after { inset: 28px 0 auto; height: 17px; }
.gift-bow { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); color: #a32e54; font-family: Georgia, serif; font-size: 65px; line-height: 1; text-shadow: 0 2px #ffe9ed; }
.gift-tag { position: relative; padding: 6px 12px; border: 1px solid #ecd4bf; border-radius: 5px; background: #fffbef; box-shadow: 0 3px 9px #76223e18; font-size: .88rem; transform: rotate(-2deg); }
.gift-tag span { color: #aa3156; }
.birthday-gift:hover { filter: brightness(1.06); }
.birthday-gift:active { animation: none; transform: scale(.96); }
.birthday-gift:focus-visible, .birthday-heart:focus-visible { outline: 3px solid #853c51; outline-offset: 3px; }
.day:has(.birthday-heart) { display: flex; flex-direction: column; }
.day:has(.birthday-heart) .date-number { position: absolute; top: 5px; left: 5px; }
.day:has(.birthday-heart) .day-items:not(:empty) { flex: 1; min-height: 18px; max-height: calc(100% - 44px); }
.birthday-heart {
  position: relative; display: grid; place-items: center; flex-shrink: 0; align-self: center;
  width: 50px; min-height: 44px; margin: auto; padding: 0; border: 0; border-radius: 50%;
  background: radial-gradient(circle, #fff5f8 25%, #f9b8cd 70%, transparent 72%);
  color: #d22462; font-size: 36px; cursor: pointer; text-shadow: 0 2px #fff, 0 0 12px #ed749e;
  animation: birthday-heartbeat 1.5s ease-in-out infinite;
}
.birthday-heart::before, .birthday-heart::after { content: '✧'; position: absolute; color: #af6a12; font-size: 14px; top: 0; left: -5px; animation: birthday-twinkle 1.5s alternate infinite; }
.birthday-heart::after { left: auto; right: -5px; top: auto; bottom: 0; animation-delay: .5s; }
.birthday-heart:hover { color: #ac1248; }
.birthday-heart-opening { animation: birthday-open .7s ease forwards; }
.birthday-notice {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100% - 32px)); z-index: 10000;
  padding: 18px 22px; background: #fff5f6; color: #713548;
  border: 1px solid #d7a0ac; border-radius: 18px; box-shadow: 0 8px 32px #71354822;
}
@keyframes birthday-beckon { 0%, 100% { transform: scale(.97) rotate(-1deg); } 50% { transform: scale(1.035) rotate(1deg); box-shadow: 0 0 0 7px #e66a9422, 0 10px 28px #a6325650; } }
@keyframes birthday-heartbeat { 0%, 100% { transform: scale(.94); } 40% { transform: scale(1.1); } 60% { transform: scale(1); } 75% { transform: scale(1.06); } }
@keyframes birthday-twinkle { to { opacity: .3; transform: scale(.7); } }
@keyframes birthday-open { to { transform: scale(1.25); opacity: .35; } }
@media (max-width: 700px) { .header-actions .birthday-gift { width: calc(100% - 18px); margin: 20px 9px 12px; } }
@media (prefers-reduced-motion: reduce) {
  .birthday-gift, .birthday-heart, .birthday-heart::before, .birthday-heart::after { animation: none; transition: none; }
}
