/* Fiesta — birthday. Warm, bright, confetti. Reads as a party without shouting. */
.celebration--fiesta {
    --c-ink: #2a1a12;
    --c-muted: #7c6455;
    --c-bg: #fffbf5;
    --c-surface: #ffffff;
    --c-accent: #db2777;
    --c-accent-soft: #fce7f3;
    --c-line: rgba(42, 26, 18, .12);
    --c-on-accent: #ffffff;
    --font-display: "Trebuchet MS", ui-rounded, "Segoe UI", system-ui, sans-serif;
}

/* Confetti is drawn in CSS rather than shipped as an image: it scales to any
   viewport, costs no request, and cannot be the thing that fails to load on a
   slow connection. Purely decorative, so it is aria-hidden in the markup. */
.celebration--fiesta .cb-confetti {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle, #fbbf24 2.5px, transparent 3px),
        radial-gradient(circle, #db2777 2px, transparent 2.5px),
        radial-gradient(circle, #38bdf8 2px, transparent 2.5px);
    background-size: 120px 120px, 170px 170px, 210px 210px;
    background-position: 0 0, 40px 60px, 90px 20px;
    opacity: .5;
}

.celebration--fiesta .cb-milestone {
    display: inline-block;
    margin-top: 1rem;
    padding: .35rem 1.1rem;
    border-radius: 999px;
    background: var(--c-accent);
    color: var(--c-on-accent);
    font-weight: 700;
    letter-spacing: .04em;
}

/* Livelier hero (review 2026-10-28: sparse, static dots). Denser, larger confetti that drifts down;
   each layer moves exactly one tile height per loop, so the loop is seamless. */
.celebration--fiesta .cb-confetti {
    background-image:
        radial-gradient(circle, #fbbf24 4px, transparent 4.5px),
        radial-gradient(circle, #db2777 3.5px, transparent 4px),
        radial-gradient(circle, #38bdf8 3.5px, transparent 4px),
        radial-gradient(circle, #a78bfa 3px, transparent 3.5px);
    background-size: 90px 110px, 130px 120px, 160px 150px, 110px 170px;
    background-position: 0 0, 40px 60px, 90px 20px, 20px 90px;
    opacity: .75;
    animation: cb-confetti-fall 14s linear infinite;
    /* Clear the middle so the name and date stay readable over the confetti. */
    -webkit-mask-image: radial-gradient(ellipse 70% 34% at 50% 50%, transparent 68%, #000 95%);
    mask-image: radial-gradient(ellipse 70% 34% at 50% 50%, transparent 68%, #000 95%);
}
@keyframes cb-confetti-fall {
    to { background-position: 0 110px, 40px 180px, 90px 170px, 20px 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .celebration--fiesta .cb-confetti { animation: none; }
}
/* Round 2 R2-2470: the confetti already clears the name, but the small pink eyebrows read 3.9:1 on the pink wash;
   they take a deeper rose. The milestone pill keeps the brighter accent as its fill. */
.celebration--fiesta .cb-eyebrow { color: #be185d; }

/* ── Round 2 R2-2474: a birthday, not a form ──────────────────────────────────
   The keepsakes in the birthday range are objects you handle; Fiesta read as a stack of web cards.
   It now has a cover moment (umbul-umbul across the top, a cake whose number candles the guest blows
   out) and party objects for its sections: a tear-off ticket for the details, balloons on the
   timeline, a gift envelope for the bank card. Everything is drawn inline as SVG or CSS. */
.celebration--fiesta .fiesta-bunting {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: max(100%, 400px); height: auto; pointer-events: none;
}
.celebration--fiesta .cb-cover { padding-top: 4.25rem; }
.celebration--fiesta .cb-cover__body > p.cb-muted { margin-bottom: .25rem; }

.celebration--fiesta .fiesta-party { margin-top: .75rem; display: grid; justify-items: center; gap: .55rem; }
.celebration--fiesta .fiesta-cake {
    width: clamp(150px, 46vw, 220px); height: auto; display: block;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 6px 10px rgba(42, 26, 18, .12));
}
.celebration--fiesta .fiesta-flame {
    transform-box: fill-box; transform-origin: 50% 100%;
    animation: fiesta-flicker 1.1s ease-in-out infinite alternate;
}
.celebration--fiesta .fiesta-candle:nth-child(2n) .fiesta-flame { animation-delay: -.45s; }
@keyframes fiesta-flicker {
    0% { transform: scale(1, 1) rotate(-3deg); }
    50% { transform: scale(.92, 1.08) rotate(2deg); }
    100% { transform: scale(1.04, .95) rotate(-1deg); }
}
.celebration--fiesta .fiesta-party.is-blown .fiesta-flame { animation: none; opacity: 0; }
.celebration--fiesta .fiesta-blow { min-width: 12rem; box-shadow: 0 6px 0 #9d174d; transform: translateY(-3px); }
.celebration--fiesta .fiesta-blow:active { box-shadow: 0 2px 0 #9d174d; transform: translateY(1px); }
.celebration--fiesta .fiesta-party.is-blown .fiesta-blow { background: var(--c-surface); color: #be185d; box-shadow: 0 4px 0 rgba(157, 23, 77, .35); }
.celebration--fiesta .fiesta-party__status { margin: 0; min-height: 1.5em; font-weight: 600; color: #9d174d; }
.celebration--fiesta .cb-cover--photo .fiesta-party__status { color: #fff; }
.celebration--fiesta .fiesta-burst { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.celebration--fiesta .fiesta-burst i { position: absolute; width: 9px; height: 14px; border-radius: 2px; }
/* The cover cake and button must leave the name on screen on a 360x640 phone. */
@media (max-height: 700px) {
    .celebration--fiesta .cb-cover { padding-block: 3.75rem 2.5rem; }
    .celebration--fiesta .cb-cover .cb-display { font-size: clamp(2.1rem, 10vw, 3.4rem); }
    .celebration--fiesta .cb-cover .cb-lede { margin-top: .6rem !important; margin-bottom: .6rem; }
    .celebration--fiesta .fiesta-cake { width: clamp(130px, 38vw, 170px); }
}

.celebration--fiesta .fiesta-icon { display: block; width: 48px; height: 48px; margin: 0 auto .5rem; }

/* The party details card is a ticket: a pink stub with the party number, torn off along a dashed line. */
.celebration--fiesta .fiesta-ticket { padding-top: 0; overflow: visible; }
.celebration--fiesta .fiesta-ticket__stub {
    position: relative;
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    margin: 0 -1.5rem 1.4rem; padding: .85rem 1.5rem .8rem;
    background: var(--c-accent); color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 2px dashed rgba(255, 255, 255, .75);
    font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem;
}
.celebration--fiesta .fiesta-ticket__stub span:last-child { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; }
.celebration--fiesta .fiesta-ticket__stub::before,
.celebration--fiesta .fiesta-ticket__stub::after {
    content: ""; position: absolute; bottom: -11px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--c-accent-soft);
}
.celebration--fiesta .fiesta-ticket__stub::before { left: -11px; }
.celebration--fiesta .fiesta-ticket__stub::after { right: -11px; }

/* Timeline dots become balloons on their strings. */
.celebration--fiesta .cb-timeline { border-left: 2px dashed rgba(42, 26, 18, .22); }
.celebration--fiesta .cb-timeline li { --balloon: #db2777; padding-left: 1.85rem; }
.celebration--fiesta .cb-timeline li:nth-child(5n+2) { --balloon: #f59e0b; }
.celebration--fiesta .cb-timeline li:nth-child(5n+3) { --balloon: #0ea5e9; }
.celebration--fiesta .cb-timeline li:nth-child(5n+4) { --balloon: #8b5cf6; }
.celebration--fiesta .cb-timeline li:nth-child(5n+5) { --balloon: #10b981; }
.celebration--fiesta .cb-timeline li::before {
    left: -14px; top: -.1rem; width: 26px; height: 31px;
    border: 2px solid #2a1a12; border-radius: 50% 50% 47% 47% / 56% 56% 44% 44%;
    background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .55) 0 3px, transparent 4px), var(--balloon);
}
.celebration--fiesta .cb-timeline li::after {
    content: ""; position: absolute; left: -5px; top: calc(-.1rem + 30px);
    width: 8px; height: 6px; background: #2a1a12;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.celebration--fiesta .cb-timeline__year { font-weight: 700; color: #be185d; }

/* The bank card is a gift envelope: a folded flap with a little heart seal. */
.celebration--fiesta .fiesta-envelope { position: relative; overflow: hidden; padding-top: 3.4rem; }
.celebration--fiesta .fiesta-envelope::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 2.6rem;
    background: var(--c-accent-soft); border-bottom: 1px solid var(--c-line);
    clip-path: polygon(0 0, 100% 0, 100% 35%, 50% 100%, 0 35%);
}
.celebration--fiesta .fiesta-envelope::after {
    content: "\2665"; position: absolute; top: 1.35rem; left: 50%; transform: translateX(-50%);
    width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--c-accent); color: #fff; font-size: 1rem; line-height: 1;
    box-shadow: 0 0 0 3px var(--c-surface);
}
