/* Trang trí ngày lễ và sinh nhật: lớp phủ cố định, không chặn thao tác */

.fest { position: fixed; inset: 0; pointer-events: none; z-index: 25; overflow: hidden; }

/* Tết: cành đào hai góc, cánh hoa rơi */
.corner { position: absolute; top: -8px; width: 92px; height: 92px; opacity: .75; }
.corner.tl { left: -16px; }
.corner.tr { right: -16px; transform: scaleX(-1); }
.branch { width: 100%; height: 100%; }
.petal {
  position: absolute; top: -24px; width: 10px; height: 8px;
  background: #F4B6C2; border-radius: 80% 0 80% 0; opacity: .85;
  animation-name: petal-fall; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes petal-fall {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(40px, 110vh) rotate(360deg); }
}

/* Trung thu: dãy đèn lồng đung đưa; Quốc khánh, 30/4, 1/5, Giỗ Tổ: dây cờ */
.strip { position: absolute; top: 0; left: 0; right: 0; height: 60px; }
.strip svg { width: 100%; height: 100%; }
.lanterns .lan, .fest-lantern .lan { transform-origin: top center; animation: sway 3.2s ease-in-out infinite alternate; }
.fest-lantern .lan:nth-child(2) { animation-delay: -1s; }
.fest-lantern .lan:nth-child(3) { animation-delay: -2s; }
.fest-lantern .lan:nth-child(4) { animation-delay: -.5s; }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

/* Sinh nhật: bóng bay bay nhẹ và giấy màu rơi */
.balloons { position: absolute; top: 56px; right: 8px; width: 96px; animation: bob 4s ease-in-out infinite alternate; }
.balloons svg { width: 100%; height: auto; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.confetti {
  position: absolute; top: -16px; width: 8px; height: 12px; border-radius: 2px;
  animation-name: confetti-fall; animation-timing-function: linear; animation-iteration-count: infinite;
}
.confetti.c0 { background: #E0758E; } .confetti.c1 { background: #F2C94C; }
.confetti.c2 { background: #6FA8DC; } .confetti.c3 { background: #5F7A43; }
.confetti.c4 { background: #A0432A; }
@keyframes confetti-fall {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-30px, 110vh) rotate(540deg); }
}

/* Banner trong khung chính */
.fest-banner {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; margin: 0 0 14px; border-radius: 18px; color: #FFF8F0;
  box-shadow: 0 12px 24px -18px rgba(80, 40, 20, .6);
}
.fest-banner p { margin: 2px 0 0; font-size: 13.5px; opacity: .95; }
.fest-banner b { font-size: 15px; }
.fest-ic {
  width: 40px; height: 40px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: rgba(255, 255, 255, .2);
}
.fest-banner.t-tet { background: linear-gradient(160deg, #C8323C, #8E1F28); }
.fest-banner.t-lantern { background: linear-gradient(160deg, #E0A030, #B5532F); }
.fest-banner.t-flag { background: linear-gradient(160deg, #D63A2A, #A82A1E); }
.fest-banner.t-flower { background: linear-gradient(160deg, #E0758E, #B54C6A); }
.fest-banner.t-birthday { background: linear-gradient(160deg, #F2C94C, #E0758E); color: #3A2A20; }
.fest-banner.t-birthday .fest-ic { background: rgba(255, 255, 255, .55); }

/* Popup lời chúc */
.fest-pop .fest-item { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.fest-pop .fest-item p { margin: 4px 0 0; color: var(--ink-2); }
.fest-pop .fest-ic { background: var(--t-brick-bg); color: var(--t-brick); }

@media (prefers-reduced-motion: reduce) {
  .petal, .confetti, .balloons, .lanterns .lan, .fest-lantern .lan { animation: none; }
}
