/* 紫仙生日日模式 —— 只在 body.is-birthday 时生效 */

.is-birthday {
  --lilac: #c98a96;
  --lilac-deep: #a86472;
  --rose: #f0b7c2;
  --paper: #faf3ef;
  --paper-2: #fff8f5;
}

.is-birthday body,
body.is-birthday {
  background: var(--paper);
}

body.is-birthday::before {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(232, 160, 176, 0.34), transparent 44%),
    radial-gradient(ellipse at 86% 18%, rgba(201, 169, 228, 0.2), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(240, 213, 168, 0.18), transparent 46%),
    var(--paper);
}

body.is-birthday nav {
  background: rgba(250, 243, 239, 0.88);
  border-bottom-color: rgba(168, 100, 114, 0.12);
}

.birthday-ribbon {
  display: none;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #6b3f48;
  background: linear-gradient(90deg, rgba(232, 160, 176, 0.35), rgba(245, 198, 206, 0.55), rgba(201, 169, 228, 0.3));
  border-bottom: 1px solid rgba(168, 100, 114, 0.14);
}

body.is-birthday .birthday-ribbon {
  display: block;
}

.birthday-ribbon a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 10px;
  opacity: 0.85;
}

body.is-birthday .brand {
  color: var(--lilac-deep);
}

body.is-birthday .btn-primary {
  background: linear-gradient(135deg, #c98a96, #e8a0b0);
  box-shadow: 0 10px 28px rgba(168, 100, 114, 0.22);
}

body.is-birthday .ai-launcher-label {
  color: #a86472;
  border-color: rgba(168, 100, 114, 0.22);
}

body.is-birthday .ai-chat-bubble {
  background: linear-gradient(135deg, #c98a96, #e8a0b0);
  box-shadow: 0 8px 24px rgba(168, 100, 114, 0.32);
}

.birthday-petal {
  position: fixed;
  top: -16px;
  z-index: 40;
  border-radius: 60% 40% 60% 40%;
  opacity: 0.75;
  pointer-events: none;
  animation-name: birthdayPetalFall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes birthdayPetalFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 0.8; }
  100% {
    transform: translate3d(40px, 110vh, 0) rotate(320deg);
    opacity: 0;
  }
}

body.is-birthday .birthday-only {
  display: revert;
}

a.door.birthday-only,
.door.birthday-only {
  display: none;
  text-decoration: none;
  color: inherit;
}

body.is-birthday a.door.birthday-only,
body.is-birthday .door.birthday-only {
  display: block;
}

.birthday-only-inline {
  display: none;
}

body.is-birthday .birthday-only-inline {
  display: inline;
}
