/* ============================================================
   Birthday RSVP - Mickey Mouse & Friends Party Theme
   Inspired by Disney's iconic Mickey Mouse visual language:
   bold red, black, and white with cheerful accents.
   ============================================================ */

:root {
    /* Mickey Mouse palette */
    --mickey-red: #e0281c;
    --mickey-black: #1a1a1a;
    --mickey-white: #ffffff;
    --mickey-yellow: #f5c518;
    --mickey-gold: #d4a017;
    --mickey-blue: #1565c0;
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #e0281c 0%, #b71c1c 100%);
    --gradient-festive: linear-gradient(135deg, #e0281c 0%, #f5c518 50%, #e0281c 100%);
    --gradient-bg: radial-gradient(ellipse at top, #fff8f0 0%, #ffeaea 40%, #fff0c0 100%);
    /* Typography */
    --font-main: 'Nunito', sans-serif;
    --font-display: 'Fredoka One', cursive;
    /* Cards */
    --shadow-card: 0 20px 60px rgba(0,0,0,0.13), 0 8px 20px rgba(0,0,0,0.09);
    --radius-card: 24px;
}

* {
    box-sizing: border-box;
}

body.birthday-body {
    font-family: var(--font-main);
    background: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    /* Subtle polka-dot overlay evocative of Mickey's classic red shorts */
    background-image: radial-gradient(circle, rgba(224,40,28,0.07) 1px, transparent 1px), var(--gradient-bg);
    background-size: 28px 28px, 100% 100%;
}

/* ── Floating background decorations ───────────────────────── */
.mickey-bg, .balloons-bg, .confetti-bg, .fireworks-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

    .mickey-bg span,
    .balloons-bg span,
    .confetti-bg span,
    .fireworks-bg span {
        position: absolute;
        font-size: 2rem;
        animation: float-up 9s ease-in-out infinite;
        animation-fill-mode: backwards;
        opacity: 0.55;
    }

        .mickey-bg span:nth-child(1) {
            left: 4%;
            animation-delay: 0s;
            font-size: 2.8rem;
        }

        .mickey-bg span:nth-child(2) {
            left: 18%;
            animation-delay: 1.4s;
            font-size: 2rem;
        }

        .mickey-bg span:nth-child(3) {
            left: 36%;
            animation-delay: 3.1s;
            font-size: 2.4rem;
        }

        .mickey-bg span:nth-child(4) {
            left: 55%;
            animation-delay: 0.7s;
            font-size: 1.8rem;
        }

        .mickey-bg span:nth-child(5) {
            left: 72%;
            animation-delay: 2.3s;
            font-size: 2.2rem;
        }

        .mickey-bg span:nth-child(6) {
            left: 88%;
            animation-delay: 4.2s;
            font-size: 2.6rem;
        }

        .mickey-bg span:nth-child(7) {
            left: 30%;
            animation-delay: 5s;
            font-size: 1.7rem;
        }

        .mickey-bg span:nth-child(8) {
            left: 62%;
            animation-delay: 2.8s;
            font-size: 2rem;
        }

        /* Legacy bg class aliases */
        .balloons-bg span:nth-child(1) {
            left: 5%;
            animation-delay: 0s;
            font-size: 2.5rem;
        }

        .balloons-bg span:nth-child(2) {
            left: 20%;
            animation-delay: 1.5s;
            font-size: 1.8rem;
        }

        .balloons-bg span:nth-child(3) {
            left: 40%;
            animation-delay: 3s;
            font-size: 2.2rem;
        }

        .balloons-bg span:nth-child(4) {
            left: 60%;
            animation-delay: 0.8s;
            font-size: 2rem;
        }

        .balloons-bg span:nth-child(5) {
            left: 80%;
            animation-delay: 2.2s;
            font-size: 1.5rem;
        }

        .balloons-bg span:nth-child(6) {
            left: 93%;
            animation-delay: 4s;
            font-size: 2.4rem;
        }

        .confetti-bg span:nth-child(1) {
            left: 3%;
            animation-delay: 0s;
            font-size: 1.5rem;
            animation-name: float-down;
        }

        .confetti-bg span:nth-child(2) {
            left: 15%;
            animation-delay: 1.2s;
            font-size: 1.8rem;
            animation-name: float-down;
        }

        .confetti-bg span:nth-child(3) {
            left: 30%;
            animation-delay: 2.5s;
            font-size: 1.4rem;
            animation-name: float-down;
        }

        .confetti-bg span:nth-child(4) {
            left: 50%;
            animation-delay: 0.5s;
            font-size: 2rem;
            animation-name: float-down;
        }

        .confetti-bg span:nth-child(5) {
            left: 65%;
            animation-delay: 1.8s;
            font-size: 1.6rem;
            animation-name: float-down;
        }

        .confetti-bg span:nth-child(6) {
            left: 80%;
            animation-delay: 3.2s;
            font-size: 1.3rem;
            animation-name: float-down;
        }

        .confetti-bg span:nth-child(7) {
            left: 90%;
            animation-delay: 0.9s;
            font-size: 1.9rem;
            animation-name: float-down;
        }

        .confetti-bg span:nth-child(8) {
            left: 70%;
            animation-delay: 4.1s;
            font-size: 1.5rem;
            animation-name: float-down;
        }

        .fireworks-bg span:nth-child(odd) {
            animation: float-up 6s ease-in-out infinite;
        }

        .fireworks-bg span:nth-child(even) {
            animation: float-diagonal 7s ease-in-out infinite;
        }

        .fireworks-bg span:nth-child(1) {
            left: 5%;
            animation-delay: 0s;
        }

        .fireworks-bg span:nth-child(2) {
            left: 20%;
            animation-delay: 0.8s;
        }

        .fireworks-bg span:nth-child(3) {
            left: 40%;
            animation-delay: 1.5s;
        }

        .fireworks-bg span:nth-child(4) {
            left: 55%;
            animation-delay: 0.3s;
        }

        .fireworks-bg span:nth-child(5) {
            left: 72%;
            animation-delay: 2.1s;
        }

        .fireworks-bg span:nth-child(6) {
            left: 88%;
            animation-delay: 1.2s;
        }

        .fireworks-bg span:nth-child(7) {
            left: 35%;
            animation-delay: 3s;
        }

        .fireworks-bg span:nth-child(8) {
            left: 62%;
            animation-delay: 2.7s;
        }

@keyframes float-up {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.45;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float-down {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.45;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float-diagonal {
    0% {
        transform: translate(0, 110vh) rotate(0deg);
        opacity: 0;
    }

    100% {
        transform: translate(30px, -10vh) rotate(270deg);
        opacity: 0;
    }
}

.enter-code-page, .details-page, .success-page {
    position: relative;
    z-index: 1;
}

/* ── Hero section ───────────────────────────────────────────── */
.hero-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    color: var(--mickey-black);
    text-shadow: 3px 3px 0px rgba(224,40,28,0.18), 1px 1px 0 rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #5a2d2d;
    font-weight: 700;
}

/* ── Code input card ────────────────────────────────────────── */
.code-card {
    border-radius: var(--radius-card) !important;
    border: 3px solid rgba(255,255,255,0.8) !important;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card) !important;
    /* Subtle top accent bar */
    border-top: 6px solid var(--mickey-red) !important;
}

/* ── Party / RSVP form cards ────────────────────────────────── */
.party-card, .rsvp-form-card, .success-card {
    border-radius: var(--radius-card) !important;
    border: 3px solid rgba(255,255,255,0.75) !important;
    background: rgba(255,255,255,0.93) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card) !important;
}

.party-card {
    border-top: 6px solid var(--mickey-red) !important;
    background: linear-gradient(160deg, rgba(255,255,255,0.97) 0%, rgba(255,240,240,0.97) 100%) !important;
}

.rsvp-form-card {
    border-top: 6px solid var(--mickey-black) !important;
}

.success-card {
    border-top: 6px solid var(--mickey-yellow) !important;
}

/* ── Code input ─────────────────────────────────────────────── */
.code-input {
    border-radius: 16px !important;
    border: 3px solid #ddd !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3em !important;
    text-transform: uppercase !important;
    font-family: var(--font-display) !important;
    transition: all 0.3s ease !important;
    color: var(--mickey-black) !important;
    text-align: center;
}

    .code-input:focus {
        border-color: var(--mickey-red) !important;
        box-shadow: 0 0 0 4px rgba(224,40,28,0.2) !important;
        transform: scale(1.02);
    }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-birthday {
    background: var(--gradient-main) !important;
    border: none !important;
    border-radius: 50px !important;
    color: white !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    padding: 0.8rem 2rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(224,40,28,0.38) !important;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

    .btn-birthday:hover {
        transform: translateY(-3px) scale(1.02) !important;
        box-shadow: 0 12px 30px rgba(224,40,28,0.48) !important;
        color: white !important;
    }

.btn-outline-birthday {
    border: 2px solid var(--mickey-red) !important;
    border-radius: 50px !important;
    color: var(--mickey-red) !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    padding: 0.6rem 1.5rem !important;
}

    .btn-outline-birthday:hover {
        background: var(--mickey-red) !important;
        color: white !important;
        transform: translateY(-2px) !important;
    }

/* ── Party details ──────────────────────────────────────────── */
.party-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 6.5rem;
    line-height: 1;
    color: var(--mickey-red);
    text-shadow: 4px 4px 0px rgba(0,0,0,0.15);
}

.party-name-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--mickey-black);
    margin-bottom: 0.25rem;
}

.party-tagline {
    color: var(--mickey-red);
    font-weight: 700;
    font-size: 1.05rem;
}

.party-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.party-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.75);
    border-radius: 14px;
    border: 2px solid rgba(224,40,28,0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

    .party-detail-item:hover {
        transform: translateX(4px);
        background: rgba(255,255,255,0.95);
        border-color: rgba(224,40,28,0.25);
    }

.party-detail-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.party-detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mickey-red);
    font-weight: 800;
}

.party-detail-value {
    font-weight: 700;
    color: var(--mickey-black);
    font-size: 0.97rem;
}

/* ── RSVP Form ──────────────────────────────────────────────── */
.rsvp-form-title {
    font-family: var(--font-display);
    color: var(--mickey-black);
    font-size: 1.55rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--mickey-red);
    padding-bottom: 0.6rem;
    display: inline-block;
}

/* Attendance buttons */
.attendance-options {
    display: flex;
    gap: 1rem;
}

.attendance-option {
    flex: 1;
}

.attendance-btn {
    width: 100% !important;
    padding: 1rem !important;
    border-radius: 18px !important;
    font-weight: 800 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
    transition: all 0.3s ease !important;
    border-width: 3px !important;
}

.attendance-emoji {
    font-size: 2.2rem;
}

.attendance-label {
    font-size: 0.9rem;
}

.btn-check:checked + .attendance-btn {
    transform: scale(1.06) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18) !important;
}

/* Companion buttons (btn-check style, no visible checkbox) */
.companions-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.companion-option {
    flex: 1;
    min-width: 70px;
}

.companion-btn {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.3rem !important;
    padding: 0.85rem 0.5rem !important;
    border-radius: 16px !important;
    border: 3px solid #e0e0e0 !important;
    background: #fafafa !important;
    color: #444 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
}

    .companion-btn:hover {
        border-color: var(--mickey-red) !important;
        background: rgba(224,40,28,0.05) !important;
        transform: translateY(-2px);
    }

.btn-check:checked + .companion-btn {
    border-color: var(--mickey-red) !important;
    background: rgba(224,40,28,0.1) !important;
    color: var(--mickey-red) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 18px rgba(224,40,28,0.25) !important;
}

.companion-icon {
    font-size: 1.8rem;
}

.companion-name {
    font-size: 0.8rem;
    font-weight: 800;
}

/* ── Welcome section ────────────────────────────────────────── */
.welcome-emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.welcome-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--mickey-black);
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 0 rgba(224,40,28,0.12);
}

.highlight-name {
    color: var(--mickey-red);
    font-style: normal;
}

.welcome-subtitle {
    color: #5a2d2d;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ── Success page ───────────────────────────────────────────── */
.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: block;
    animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--mickey-red);
    margin-bottom: 1rem;
}

.success-subtitle {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.6;
}

.success-detail-item {
    padding: 0.75rem 1rem;
    background: rgba(224,40,28,0.05);
    border-left: 4px solid var(--mickey-red);
    border-radius: 0 12px 12px 0;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ── Animations ─────────────────────────────────────────────── */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.animate-pop-in {
    animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 576px) {
    .party-number {
        font-size: 4.5rem;
    }

    .hero-emoji {
        font-size: 4rem;
    }

    .code-input {
        font-size: 1.5rem !important;
    }

    .attendance-emoji {
        font-size: 1.8rem;
    }

    .companion-icon {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Invitation Page – redesigned look (Details + Success)
   ═══════════════════════════════════════════════════════════ */

/* ── Invite hero banner ─────────────────────────────────────── */
.invite-hero-banner {
    background: linear-gradient(135deg, #e0281c 0%, #b71c1c 55%, #1a1a1a 100%);
    border-radius: 28px;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(224,40,28,0.38);
}

    .invite-hero-banner::before,
    .invite-hero-banner::after {
        content: '🐭';
        position: absolute;
        font-size: 9rem;
        opacity: 0.06;
        pointer-events: none;
        line-height: 1;
    }

    .invite-hero-banner::before {
        left: -20px;
        top: -10px;
    }

    .invite-hero-banner::after {
        right: -20px;
        bottom: -20px;
        transform: scaleX(-1);
    }

.invite-label {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.3rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.invite-hero-greeting {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: rgba(255,255,255,0.85);
    margin: 0 0 0.1rem;
}

.invite-hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 4.2rem);
    color: var(--mickey-yellow);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.22);
    display: block;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.invite-hero-sub {
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    font-weight: 600;
}

/* ── Party card inner header (dark Mickey) ─────────────────── */
.party-card-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-radius: 20px 20px 0 0;
    padding: 1.75rem 1.5rem 1.25rem;
    text-align: center;
}

.party-card-number-big {
    font-family: var(--font-display);
    font-size: 5.5rem;
    line-height: 1;
    color: var(--mickey-yellow);
    text-shadow: 4px 4px 0 rgba(0,0,0,0.35);
    display: block;
}

.party-card-title-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    margin: 0 0 0.25rem;
}

.party-card-sub-text {
    color: rgba(255,255,255,0.62);
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
}

/* ── RSVP form card inner header (yellow accent) ───────────── */
.rsvp-card-header {
    background: linear-gradient(135deg, var(--mickey-yellow) 0%, #e8b800 100%);
    border-radius: 20px 20px 0 0;
    padding: 1.1rem 1.5rem;
    text-align: center;
}

.rsvp-card-header-title {
    font-family: var(--font-display);
    color: var(--mickey-black);
    font-size: 1.45rem;
    margin: 0;
}

/* Tighten the party + rsvp cards when they have inner headers */
.party-card.has-header,
.rsvp-form-card.has-header {
    border-top: none !important;
    padding-top: 0 !important;
    overflow: hidden;
}

/* ── Already-confirmed banner ──────────────────────────────── */
.confirmed-banner {
    background: linear-gradient(135deg, #1a6b1a 0%, #2e7d32 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}

    .confirmed-banner.not-attending {
        background: linear-gradient(135deg, #8b1a1a 0%, #b71c1c 100%);
    }

.confirmed-banner-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.confirmed-banner-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0 0 0.25rem;
}

.confirmed-banner-sub {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* ── Success page redesign ─────────────────────────────────── */
.success-card-header {
    background: linear-gradient(135deg, var(--mickey-yellow) 0%, #e8b800 100%);
    border-radius: 20px 20px 0 0;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

    .success-card-header.not-attending-header {
        background: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
    }

.success-header-icon {
    font-size: 4.5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-header-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--mickey-black);
    margin: 0;
}

.success-card.has-header {
    border-top: none !important;
    overflow: hidden;
}

.success-card-body-attending {
    background: linear-gradient(160deg, #fff 0%, #fffde7 100%);
}

@media (max-width: 576px) {
    .invite-hero-banner {
        padding: 2rem 1rem 1.5rem;
        border-radius: 20px;
    }

    .invite-hero-name {
        font-size: 2.2rem;
    }

    .party-card-number-big {
        font-size: 4.2rem;
    }

    .party-card-title-text {
        font-size: 1.6rem;
    }
}

/* ── CSS Balloons ───────────────────────────────────────────── */
.balloon-strip {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(4px, 2vw, 14px);
    padding: 0 1rem;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

    .balloon-strip.top-strip {
        margin-bottom: -12px;
        align-items: flex-end;
    }

    .balloon-strip.bot-strip {
        margin-top: -12px;
        align-items: flex-start;
        transform: scaleY(-1);
    }

.bln {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bln-sway 4s ease-in-out infinite;
}

    .bln:nth-child(even) {
        animation-delay: 0.6s;
    }

    .bln:nth-child(3n) {
        animation-delay: 1.2s;
    }

    .bln:nth-child(4n) {
        animation-delay: 1.8s;
    }

    .bln.sz-sm .bln-body {
        width: 38px;
        height: 46px;
    }

    .bln.sz-md .bln-body {
        width: 50px;
        height: 60px;
    }

    .bln.sz-lg .bln-body {
        width: 62px;
        height: 74px;
    }

.bln-body {
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
    position: relative;
    flex-shrink: 0;
}
    /* Highlight gloss */
    .bln-body::before {
        content: '';
        position: absolute;
        width: 38%;
        height: 40%;
        border-radius: 50%;
        background: rgba(255,255,255,0.32);
        top: 14%;
        left: 14%;
    }
    /* Knot at bottom */
    .bln-body::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 7px;
        height: 9px;
        border-radius: 50% 50% 40% 40% / 55% 55% 45% 45%;
        background: inherit;
        filter: brightness(0.65);
    }
/* String */
.bln-string {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.35);
    transform-origin: top center;
    animation: string-sway 4s ease-in-out infinite;
}

.bln:nth-child(even) .bln-string {
    animation-delay: 0.6s;
}

.bln:nth-child(3n) .bln-string {
    animation-delay: 1.2s;
}

/* Balloon colours */
.bln.red .bln-body {
    background: radial-gradient(circle at 32% 28%, #ff7373, #dc2626, #7f1d1d);
    box-shadow: -4px -4px 10px rgba(255,110,110,0.18) inset, 0 6px 16px rgba(0,0,0,0.4);
}

.bln.blk .bln-body {
    background: radial-gradient(circle at 32% 28%, #606060, #252525, #050505);
    box-shadow: -4px -4px 10px rgba(180,180,180,0.08) inset, 0 6px 16px rgba(0,0,0,0.5);
}

.bln.yel .bln-body {
    background: radial-gradient(circle at 32% 28%, #fff176, #f5c518, #a07800);
    box-shadow: -4px -4px 10px rgba(255,235,100,0.25) inset, 0 6px 16px rgba(0,0,0,0.35);
}

.bln.blu .bln-body {
    background: radial-gradient(circle at 32% 28%, #93c5fd, #1d6fdc, #0d3577);
    box-shadow: -4px -4px 10px rgba(147,197,253,0.25) inset, 0 6px 16px rgba(0,0,0,0.4);
}

.bln.grn .bln-body {
    background: radial-gradient(circle at 32% 28%, #86efac, #16a34a, #0a4220);
    box-shadow: -4px -4px 10px rgba(134,239,172,0.22) inset, 0 6px 16px rgba(0,0,0,0.38);
}

.bln.pnk .bln-body {
    background: radial-gradient(circle at 32% 28%, #f9a8d4, #ec4899, #9d174d);
    box-shadow: -4px -4px 10px rgba(249,168,212,0.22) inset, 0 6px 16px rgba(0,0,0,0.38);
}

.bln.orn .bln-body {
    background: radial-gradient(circle at 32% 28%, #fdba74, #ea580c, #7c2d12);
    box-shadow: -4px -4px 10px rgba(253,186,116,0.22) inset, 0 6px 16px rgba(0,0,0,0.38);
}

@keyframes bln-sway {
    0%, 100% {
        transform: rotate(-4deg) translateY(0);
    }

    50% {
        transform: rotate(4deg) translateY(-10px);
    }
}

@keyframes string-sway {
    0%, 100% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

/* ── Gold confetti ──────────────────────────────────────────── */
.gold-confetti-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.gc {
    position: absolute;
    top: -20px;
    animation: gc-fall linear infinite;
}

    .gc.sq {
        width: 8px;
        height: 8px;
        border-radius: 2px;
    }

    .gc.ci {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

    .gc.rec {
        width: 12px;
        height: 5px;
        border-radius: 2px;
    }

    .gc.col-a {
        background: #f5c518;
    }

    .gc.col-b {
        background: #d4a017;
    }

    .gc.col-c {
        background: rgba(255,215,0,0.7);
    }

@keyframes gc-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(105vh) rotate(720deg);
        opacity: 0;
    }
}

/* ── Main invitation card ───────────────────────────────────── */
.invite-card {
    background: linear-gradient(160deg, #fff 0%, #fffbf0 55%, #fff0f5 100%);
    border-radius: 22px;
    overflow: visible;
    position: relative;
    border: 3px solid rgba(224,40,28,0.15);
    box-shadow: 0 24px 70px rgba(0,0,0,0.12), 0 10px 30px rgba(224,40,28,0.1);
}

/* ── Top branding area ──────────────────────────────────────── */
.invite-card-top {
    padding: 1.5rem 1.5rem 0.75rem;
    text-align: center;
    position: relative;
}

.invite-disney-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.15rem;
    color: rgba(0,0,0,0.45);
    display: block;
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
}
/* Mickey ears made from CSS circles */
.mickey-logo-wrap {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    margin-bottom: 0.1rem;
}

.mickey-ear {
    width: 42px;
    height: 42px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    position: relative;
    bottom: 12px;
    flex-shrink: 0;
}

.mickey-face {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    z-index: 1;
    flex-shrink: 0;
}

.invite-mickey-title {
    font-family: 'Fredoka One', cursive;
    color: #e0281c;
    font-size: clamp(2rem, 8vw, 3rem);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.35);
    letter-spacing: 0.06em;
    margin: 0;
    line-height: 1;
    display: block;
}

/* ── Invitation body text ───────────────────────────────────── */
.invite-card-mid {
    padding: 0.5rem 2rem 0.75rem;
    text-align: center;
}

.invite-you-are {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    color: #8b6545;
    font-size: 1rem;
    margin: 0.5rem 0 0.3rem;
    letter-spacing: 0.02em;
}

.invite-name {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2.4rem, 9vw, 4rem);
    color: #f5c518;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.28), 0 0 20px rgba(245,197,24,0.18);
    margin: 0 0 0.1rem;
    line-height: 1.05;
    display: block;
}

.invite-bday-word {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(3.2rem, 12vw, 5.5rem);
    color: var(--mickey-black);
    text-shadow: 4px 4px 0 rgba(224,40,28,0.18);
    display: block;
    line-height: 0.88;
    letter-spacing: -0.01em;
}

.invite-party-word {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.4rem, 8vw, 4rem);
    color: #e0281c;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.18);
    display: block;
    line-height: 1;
}

/* ── Event details row ──────────────────────────────────────── */
.invite-card-details {
    padding: 0.75rem 1.75rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
}

.invite-det-date {
    color: var(--mickey-black);
    font-weight: 700;
    font-size: 0.97rem;
    margin: 0 0 0.3rem;
}

.invite-det-place {
    color: #555;
    font-size: 0.88rem;
    margin: 0 0 0.15rem;
}

.invite-det-note {
    color: #999;
    font-size: 0.78rem;
    margin: 0 0 0.5rem;
}

.invite-det-dress {
    display: inline-block;
    background: rgba(224,40,28,0.06);
    border: 1px solid rgba(224,40,28,0.2);
    border-radius: 50px;
    padding: 0.25rem 0.9rem;
    color: #8b4513;
    font-size: 0.78rem;
    font-weight: 600;
}
/* Mickey character */
.invite-mickey-char {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: clamp(5rem, 14vw, 8rem);
    line-height: 1;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.55));
    pointer-events: none;
}

/* ── RSVP section (light theme) ─────────────────────────────── */
.rsvp-dark-section {
    background: rgba(255,255,255,0.92);
    border: 2px solid rgba(224,40,28,0.15);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.rsvp-dark-title {
    font-family: 'Fredoka One', cursive;
    color: var(--mickey-black);
    font-size: 1.6rem;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* Form labels / inputs for light theme */
.rsvp-dark-section .form-label {
    color: var(--mickey-black);
    font-weight: 700;
}

.rsvp-dark-section .form-control {
    background: #fafafa !important;
    border-color: #ddd !important;
    color: var(--mickey-black) !important;
}

    .rsvp-dark-section .form-control:focus {
        border-color: #e0281c !important;
        box-shadow: 0 0 0 3px rgba(224,40,28,0.18) !important;
    }

    .rsvp-dark-section .form-control::placeholder {
        color: #aaa;
    }

.rsvp-dark-section .attendance-btn {
    border-width: 2px !important;
}

.rsvp-dark-section .btn-outline-success {
    border-color: #16a34a !important;
    color: #16a34a !important;
    background: transparent !important;
}

.rsvp-dark-section .btn-outline-danger {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    background: transparent !important;
}

.rsvp-dark-section .btn-check:checked + .btn-outline-success {
    background: #16a34a !important;
    color: #fff !important;
}

.rsvp-dark-section .btn-check:checked + .btn-outline-danger {
    background: #dc2626 !important;
    color: white !important;
}

.rsvp-dark-section .companion-btn {
    background: #fafafa !important;
    border-color: #e0e0e0 !important;
    color: #444 !important;
}

.rsvp-dark-section .btn-check:checked + .companion-btn {
    border-color: #e0281c !important;
    background: rgba(224,40,28,0.07) !important;
    color: #e0281c !important;
}

.rsvp-dark-section .alert-info {
    background: rgba(224,40,28,0.05);
    border-color: rgba(224,40,28,0.15);
    color: #5a2d2d;
}

.rsvp-dark-section .confirmed-banner {
    border-radius: 14px;
}

.rsvp-dark-section .alert.alert-info.text-start.small.mt-3 {
    color: #5a2d2d !important;
}

@media (max-width: 576px) {
    .invite-mickey-char {
        font-size: 4.5rem;
        right: -6px;
        bottom: -6px;
    }

    .invite-bday-word {
        font-size: 2.8rem;
    }

    .invite-party-word {
        font-size: 2.2rem;
    }

    .invite-name {
        font-size: 2.2rem;
    }

    .invite-card-mid {
        padding: 0.5rem 1.25rem 0.75rem;
    }

    .invite-card-details {
        padding: 0.75rem 1.25rem 1rem;
    }

    .rsvp-dark-section {
        padding: 1.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Designer Card Theme – Mickey Party Invitation (v2)
   New visual design by designer. Applies to all guest pages.
   ═══════════════════════════════════════════════════════════ */

/* ── Override body background ───────────────────────────────── */
body.birthday-body {
    background: #f0f2f5 !important;
    background-image: none !important;
    background-attachment: unset !important;
}

/* ── External blurred blobs (fixed behind everything) ────────── */
.background-decor {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(60px);
}

.s-blue {
    width: 350px;
    height: 350px;
    background: #90caf9;
    top: -50px;
    left: -100px;
}

.s-pink {
    width: 300px;
    height: 300px;
    background: #f48fb1;
    bottom: -50px;
    right: -50px;
}

/* ── Page scroll wrapper ─────────────────────────────────────── */
.scroll-container {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 25px 15px 0px 15px;
    position: relative; /* establishes stacking context above confetti */
    z-index: 1;
}

/* ── Designer card ───────────────────────────────────────────── */
.designer-card {
    background: linear-gradient(160deg, rgba(255,200,215,0.18) 0%, rgba(255,240,180,0.12) 40%, rgba(180,230,255,0.18) 100% ), #FFFDF2;
    width: 100%;
    max-width: 420px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* ── Watercolor image overlay ────────────────────────────────── */
.watercolor-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('/images/fondo-acuarela.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.45; /* slightly transparent as requested */
}

/* ── Card main content area ──────────────────────────────────── */
.card-content {
    position: relative;
    z-index: 1;
    padding: 45px 30px 35px;
    text-align: center;
}

/* ── Floating Mickey-shaped balloon decorations ──────────────── */
.balloon-mickey {
    position: absolute;
    width: 42px;
    opacity: 0.75;
    z-index: 2;
    animation: floatMickey 7s infinite ease-in-out;
}

    .balloon-mickey svg {
        width: 100%;
        height: auto;
    }

/* Color + position variants */
.bm-yellow {
    fill: #ffca28;
    top: 5%;
    left: 20px;
}

.bm-purple {
    fill: #9575cd;
    top: 45%;
    right: 20px;
    animation-delay: 1s;
}

.bm-cyan {
    fill: #4fc3f7;
    bottom: 35%;
    left: 20px;
    animation-delay: 2s;
}

.bm-red {
    fill: #ef5350;
    top: 35%;
    left: 20px;
    animation-delay: 3s;
}

.bm-orange {
    fill: #ff9800;
    top: 12%;
    right: 25px;
    animation-delay: 0.5s;
}

.bm-pink {
    fill: #f06292;
    bottom: 15%;
    right: 25px;
    animation-delay: 1.5s;
}

.bm-blue {
    fill: #2196f3;
    bottom: 5%;
    left: 45%;
    animation-delay: 2.5s;
}

@keyframes floatMickey {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(6deg);
    }
}

/* ── Title section ───────────────────────────────────────────── */
.title-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}

.number-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.big-number {
    font-family: 'Fredoka One', cursive;
    font-size: 6rem;
    color: #222;
    line-height: 1;
}

.big-number-turning {
    font-size: 4rem;
}

.is-turning {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #222;
    line-height: 1;
}

.ordinal {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #222;
    margin-top: 18px;
}

.bday-text {
    font-size: 0.82rem;
    letter-spacing: 5px;
    font-weight: 900;
    color: #444;
    font-family: 'Montserrat', 'Nunito', sans-serif;
    margin: 6px 0 3px;
    text-transform: uppercase;
}

.name-display {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    color: #222;
    line-height: 1;
    margin-bottom: 2px;
}

.daniel-name-display {
    font-family: 'Waltograph', 'Pacifico', cursive;
    font-size: 6em;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 2px 2px 0px rgba(0,0,0,0.4);
    letter-spacing: 2px;
    display: inline-block;
}

/* ── Mickey character image with animated glow ───────────────── */
.image-wrapper {
    position: relative;
    margin: 18px auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mickey-ears-ani {
    position: absolute;
    width: 320px;
    z-index: 0;
    left: 50%;
    transform: translateX(-50%);
}

    .mickey-ears-ani svg {
        width: 100%;
        height: auto;
        animation: colorFlash 4s infinite alternate ease-in-out;
    }

@keyframes colorFlash {
    0% {
        fill: #81d4fa;
        opacity: 0.15;
    }

    50% {
        fill: #f48fb1;
        opacity: 0.30;
    }

    100% {
        fill: #fff59d;
        opacity: 0.15;
    }
}

.mickey-group-img {
    width: 100%;
    max-width: 290px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.7)) drop-shadow(0 8px 18px rgba(0,0,0,0.12));
}

/* ── Event details ───────────────────────────────────────────── */
.event-details {
    margin: 14px 0 16px;
}

.event-info {
    font-size: 1.15rem;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    font-family: 'Montserrat', 'Nunito', sans-serif;
    margin: 0 0 20px;
}

.event-location {
    font-size: 0.88rem;
    font-weight: 600;
    color: #555;
    margin: 0;
}

/* ── Code input (legacy underline style, kept for reference) ─── */
.designer-input-wrapper {
    border-bottom: 3px solid #222;
    max-width: 260px;
    margin: 0 auto 18px;
}

    .designer-input-wrapper input {
        width: 100%;
        border: none;
        padding: 10px;
        text-align: center;
        font-size: 1.2rem;
        font-weight: 900;
        background: transparent;
        outline: none;
        letter-spacing: 0.2em;
        font-family: 'Montserrat', 'Nunito', sans-serif;
        text-transform: uppercase;
    }

/* ── Code entry redesign (Index page) ───────────────────────── */
.code-entry-form {
    width: 100%;
    margin-top: 50px;
}

.code-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Montserrat', 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.code-input-box {
    border-radius: 14px;
    border: 2px solid #ddd;
    background: rgba(255,255,255,0.88);
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .code-input-box:focus-within {
        border-color: #e0281c;
        box-shadow: 0 0 0 3px rgba(224,40,28,0.14);
    }

    .code-input-box input {
        width: 100%;
        border: none;
        /*padding: 18px 16px;*/
        text-align: center;
        font-size: 1.5rem;
        font-weight: 900;
        background: transparent;
        outline: none;
        letter-spacing: 0.35em;
        font-family: 'Montserrat', 'Nunito', sans-serif;
        text-transform: uppercase;
        color: #222;
    }

.code-hint-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #777;
    margin-top: 12px;
    margin-bottom: 0;
    text-align: center;
}

/* ── Primary designer button ─────────────────────────────────── */
.designer-btn {
    width: 100%;
    background: #222;
    color: white;
    padding: 10px;
    border-radius: 100px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Montserrat', 'Nunito', sans-serif;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

    .designer-btn:hover {
        background: #444;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    }

    .designer-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }
    /* ── Red variant of the designer button (Index code entry) ───── */
    .designer-btn.designer-btn-red {
        background: #e0281c;
    }

        .designer-btn.designer-btn-red:hover {
            background: #b71c1c;
            box-shadow: 0 8px 24px rgba(224,40,28,0.38);
        }

/* ── Small footer inside card – hidden; layout footer is used instead ── */
.designer-card-footer {
    display: none;
}

/* ── RSVP section inside designer card ──────────────────────── */
.rsvp-designer-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 2px solid rgba(0,0,0,0.08);
    text-align: left;
}

.rsvp-designer-title {
    font-family: 'Fredoka One', cursive;
    color: #222;
    /*font-size: 1.5rem;*/
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form controls inside designer card */
.designer-card .form-label {
    color: #222 !important;
    font-weight: 700;
}

.designer-card .form-control {
    background: rgba(255,255,255,0.82) !important;
    border-color: rgba(0,0,0,0.18) !important;
    color: #222 !important;
}

    .designer-card .form-control:focus {
        border-color: #e0281c !important;
        box-shadow: 0 0 0 3px rgba(224,40,28,0.18) !important;
    }

.designer-card .attendance-btn {
    border-width: 2px !important;
}

.designer-card .btn-outline-success {
    border-color: #16a34a !important;
    color: #16a34a !important;
    background: transparent !important;
}

.designer-card .btn-outline-danger {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    background: transparent !important;
}

.designer-card .btn-check:checked + .btn-outline-success {
    background: #16a34a !important;
    color: #fff !important;
}

.designer-card .btn-check:checked + .btn-outline-danger {
    background: #dc2626 !important;
    color: white !important;
}

.designer-card .companion-btn {
    background: rgba(255,255,255,0.82) !important;
    border-color: #ddd !important;
    color: #444 !important;
}

.designer-card .btn-check:checked + .companion-btn {
    border-color: #e0281c !important;
    background: rgba(224,40,28,0.07) !important;
    color: #e0281c !important;
}

.designer-card .alert-info {
    background: rgba(224,40,28,0.05);
    border-color: rgba(224,40,28,0.15);
    color: #5a2d2d;
}

.designer-card .confirmed-banner {
    border-radius: 14px;
}

/* ── Success header inside designer card ────────────────────── */
.designer-success-header {
    /*background: linear-gradient(135deg, #f5c518 0%, #e8b800 100%);*/
    border-radius: 30px 30px 0 0;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    margin: -45px -30px 22px;
}

    .designer-success-header.not-attending-hdr {
        /*background: linear-gradient(135deg, #607d8b 0%, #455a64 100%);*/
    }

    .designer-success-header .suc-icon {
        font-size: 4rem;
        display: block;
        margin-bottom: 0.4rem;
        animation: pop-in 0.6s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
    }

    .designer-success-header .suc-title {
        font-family: 'Waltograph', 'Pacifico', cursive;
        font-size: 4rem;
        color: #222;
        margin: 0;
        margin-top: 25px;
    }

.success-simple-card {
    max-width: 460px;
}

.success-simple-content {
    position: relative;
    z-index: 1;
}

.success-simple-body {
    padding: 0 30px 35px;
    text-align: center;
}

.success-message {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.75rem;
    text-align: center;
}

.success-mickey-wrap {
    margin: 18px auto 20px;
    text-align: center;
}

.success-mickey-img {
    max-width: 200px;
    width: 75%;
    border-radius: 14px;
    /*box-shadow: 0 8px 24px rgba(0,0,0,0.12);*/
}

/* ── Details page mickey image below confirm button ──────────── */
.details-mickey-wrap {
    margin: 22px auto 0;
    text-align: center;
}

.details-mickey-img {
    max-width: 90px;
    width: 70%;
    border-radius: 14px;
    /*box-shadow: 0 8px 24px rgba(0,0,0,0.10);*/
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .big-number {
        font-size: 4.8rem;
    }

    .name-display {
        font-size: 3.5rem;
    }

    .ordinal {
        font-size: 1.6rem;
        margin-top: 14px;
    }

    .card-content {
        padding: 35px 20px 26px;
    }

    .designer-success-header {
        margin: -35px -20px 18px;
    }

    .designer-card {
        border-radius: 28px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Desktop Responsive Layout – Two-column full-screen design
   Mobile ≤ 767px : same narrow card as before
   Desktop ≥ 768px: wide card, two-column grid, watercolor bg
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {

    /* ── Full-screen watercolor page background ───────────────── */
    body.birthday-body::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        background-image: url('/images/fondo-acuarela.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        opacity: 0.45;
    }

    /* Larger background blobs on desktop */
    .s-blue {
        width: 600px;
        height: 600px;
        top: -100px;
        left: -150px;
    }

    .s-pink {
        width: 500px;
        height: 500px;
        bottom: -100px;
        right: -100px;
    }

    /* ── Scroll wrapper ───────────────────────────────────────── */
    .scroll-container {
        padding: 40px 24px;
        align-items: center;
    }

    /* ── Wide card ────────────────────────────────────────────── */
    .designer-card {
        max-width: 1020px;
        border-radius: 30px;
    }

    /* Watercolor inside card stays, but more subtle (page bg covers it) */
    .watercolor-bg {
        opacity: 0.20;
    }

    /* ── Two-column grid ──────────────────────────────────────── */
    .card-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0;
        gap: 0;
        text-align: left; /* override mobile's text-align: center; each column sets its own alignment below */
    }

    /* ── Left: visual / invitation display column ─────────────── */
    .card-visual-col {
        padding: 0px 30px 50px 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-right: 1.5px solid rgba(0,0,0,0.07);
        position: relative;
        min-height: 750px;
    }

    /* ── Right: form / interaction column ─────────────────────── */
    .card-form-col {
        padding: 50px 50px 40px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    /* ── Typography scaling ───────────────────────────────────── */
    .big-number {
        font-size: 7.5rem;
    }

    .ordinal {
        font-size: 2.5rem;
        margin-top: 28px;
    }

    .name-display {
        font-size: 5rem;
    }

    .daniel-name-display {
        font-size: 8.25rem;
    }

    .bday-text {
        font-size: 0.9rem;
        letter-spacing: 6px;
    }

    /* ── Mickey image ─────────────────────────────────────────── */
    .mickey-group-img {
        max-width: 370px;
    }

    .mickey-ears-ani {
        width: 420px;
    }

    .image-wrapper {
        margin: 10px auto;
    }

    /* ── Event details ────────────────────────────────────────── */
    .event-details {
        margin: 16px 0 0;
    }
    /*.event-info    { font-size: 0.95rem; }*/

    /* ── Balloons: absolute at card edges (symmetric arrangement) ── */
    .balloon-mickey {
        position: absolute;
        width: 56px;
    }

    .bm-yellow {
        top: 8%;
        left: 8px;
    }

    .bm-orange {
        top: 8%;
        right: 8px;
        animation-delay: 0.5s;
    }

    .bm-cyan {
        top: 42%;
        bottom: auto;
        left: 8px;
        animation-delay: 2s;
    }

    .bm-purple {
        top: 42%;
        right: 8px;
        animation-delay: 1s;
    }

    .bm-red {
        top: auto;
        bottom: 18%;
        left: 8px;
        animation-delay: 3s;
    }

    .bm-pink {
        bottom: 18%;
        right: 8px;
        animation-delay: 1.5s;
    }

    .bm-blue {
        bottom: 5%;
        left: 50%;
        margin-left: -28px;
        animation-delay: 2.5s;
    }

    /* ── Code input & button (form column) ───────────────────── */
    .code-input-box {
        margin-bottom: 20px;
    }

        .code-input-box input {
            font-size: 1.6rem; /*padding: 20px 16px;*/
        }

    .code-label {
        font-size: 1.1rem;
        justify-content: flex-start;
    }

    .designer-btn {
        font-size: 1.05rem; /*padding: 18px 22px;*/
    }

    /* ── RSVP section: remove top divider (column separator handles it) */
    .rsvp-designer-section {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .rsvp-designer-title {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }

    /* ── Success header: bleed to top/left edges of visual column */
    .designer-success-header {
        margin: -50px -30px 24px -50px;
        border-radius: 0; /* card overflow:hidden clips the top-left corner */
        width: calc(100% + 80px);
    }

        .designer-success-header .suc-title {
            font-size: 6rem;
        }

        .designer-success-header .suc-icon {
            font-size: 4.5rem;
        }

    /* Success page: visual column starts at top (header bleeds there) */
    .success-page-card .card-visual-col {
        justify-content: flex-start;
    }

    /* ── Simple success card: single-column, no bleed header ──── */
    .success-simple-card .designer-success-header {
        margin: -45px -30px 22px;
        border-radius: 40px 40px 0 0;
        /*width: 100%;*/
    }

    /* ── Internal card footer: already hidden globally ─────────── */
}
