/* Birthday cake egg (static/js/eggs/birthday-cake.js): cake from jcoulterdesign's CodePen JXggQz, first screen
   only (bounce in, settle up), live "HAPPY BIRTHDAY" ribbon text and the person's first name in Damion. */
@font-face { font-family: "Damion"; src: url("/static/easter/birthday/damion.woff2") format("woff2"); font-display: swap; }

.cbday-wrap { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; cursor: pointer; background: none;
  animation: cbday-fade .35s ease-out both; }
.cbday-wrap.is-out { animation: cbday-fade-out .45s ease-in forwards; }
.cbday { width: min(640px, 92vw, 74vh); container-type: inline-size; text-align: center; transform: scale(0); }
/* Bounce in once the art has loaded (is-go), so it never pops in half-drawn; no second "move up" step. */
.cbday.is-go { animation: cbday-bounce .6s forwards; }
.cbday-cake { position: relative; }
.cbday-img { display: block; width: 100%; height: auto; user-select: none; }
/* Ribbon text sits on the painted-out "HAPPY" band of the image (centre at 51.9% / 91.2% of the 374×388 art). */
.cbday-ribbon { position: absolute; left: 51.9%; top: 91.2%; transform: translate(-50%, -50%); white-space: nowrap;
  color: #fff; font: 800 5.6cqw/1 "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-stretch: condensed;
  letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(160, 50, 20, 0.35); }
.cbday-name { font-family: "Damion", "Brush Script MT", cursive; font-size: 16cqw; line-height: 1.05; color: #186f79;
  margin-top: 0.5cqw; white-space: nowrap; }
.cbday-cell { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.cbday-btn { font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.cbday-btn.is-empty { color: var(--ink-2); }
/* Month + day picker (no year); fixed so the members table can't clip it */
.cbday-pop { position: fixed; z-index: 1000; width: 240px; padding: 10px; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 18%, transparent); display: grid; gap: 8px; }
.cbday-pop-head { display: flex; align-items: center; justify-content: space-between; }
.cbday-pop-nav { border: 0; background: none; color: var(--ink-2); font-size: 18px; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; }
.cbday-pop-nav:hover { background: var(--accent-soft); color: var(--ink); }
.cbday-pop-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cbday-pop-days button { border: 0; background: none; color: var(--ink); height: 28px; border-radius: 6px; cursor: pointer; font-variant-numeric: tabular-nums; font-size: 13px; }
.cbday-pop-days button:hover { background: var(--accent-soft); }
.cbday-pop-days button.is-on { background: var(--accent); color: var(--panel); font-weight: 600; }
.cbday-pop button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cbday-pop-foot { display: flex; gap: 6px; justify-content: space-between; }

@keyframes cbday-bounce { 0% { transform: scale(0); } 25% { transform: scale(1.06); } 50% { transform: scale(.965); } 75% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes cbday-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cbday-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cbday, .cbday.is-go { animation: none; transform: none; }
  .cbday-wrap, .cbday-wrap.is-out { animation: none; }
}

/* Birthday prompt ("CLIO wants to celebrate your birthday!") */
.cbday-ask { gap: 10px; }
.cbday-ask p { margin: 0; }
.cbday-ask-picker { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.cbday-picker { display: grid; gap: 8px; }
.cbday-ask-foot { justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
