* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fbf6ef; /* gentle cream */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

/* Subtle header emojis that float in on load, then gently drift */
.header-emoji {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(43, 30, 63, 0.12));
    animation: headerEnter 1.2s ease-out forwards, float 6s ease-in-out 1.2s infinite;
    pointer-events: none;
}

.header-emoji.sparkle {
    top: -6px;
    left: -6px;
    font-size: 1.4rem;
    animation-delay: 0.1s, 0.1s; /* enter, then float */
}

.header-emoji.smirk {
    top: 6px;
    right: -2px;
    font-size: 1.25rem;
    animation-delay: 0.3s, 0.3s; /* slight stagger */
}

@keyframes headerEnter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.emoji-float {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.title {
    font-size: 3rem;
    color: #2b1e3f;
    margin: 12px 0 6px;
    font-weight: 700;
}

.subtitle {
    color: #a37cc4;
    font-size: 1.1rem;
}

.tagline {
    color: #7d6b97;
    margin-top: 6px;
}

.card {
    background: transparent;
}

.card-box {
    background: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 8px 28px rgba(43, 30, 63, 0.08);
    margin-bottom: 22px;
}

.main-card {
    animation: slideUp 0.6s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roles {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ffeef8 0%, #f5e8ff 100%);
    border-radius: 15px;
}

.role {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.role-emoji {
    font-size: 2.5rem;
}

.role-name {
    font-weight: 600;
    color: #8b5fbf;
    font-size: 1.1rem;
}

.vs {
    font-size: 1.5rem;
    color: #c9a8d8;
    font-weight: 300;
}

.hypothesis {
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    color: #2b1e3f;
    font-size: 1.15rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hypothesis p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.meta {
    font-size: 0.5rem;
    color: #888;
    font-style: italic;
}

.highlight {
    color: #8b5fbf;
    font-weight: 600;
}

.invitation {
    margin-bottom: 30px;
}

.invitation h3 {
    color: #8b5fbf;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.setup {
    margin-bottom: 30px;
}

.setup h3 {
    color: #8b5fbf;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.details-box {
    background: #fcfafc;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #eee4f7;
}

.details-box a {
    color: #8b5fbf;
    text-decoration: underline;
    font-weight: 400;
    transition: color 0.2s ease;
}

.details-box a:hover {
    color: #b896d4;
    text-decoration: underline;
}

.details-box p {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.98rem;
}

.details-box p:last-child {
    margin-bottom: 0;
}

.details-box strong {
    color: #8b5fbf;
}

.quote-section {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4ff 0%, #f0e8ff 100%);
    border-radius: 15px;
    text-align: center;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #6b5f8b;
    margin-bottom: 8px;
}

.quote-small {
    font-size: 0.9rem;
    color: #9b8fb4;
}

.cta-section {
    text-align: center;
    margin-top: 30px;
}

.question {
    font-size: 1.3rem;
    color: #8b5fbf;
    margin-bottom: 20px;
    font-weight: 500;
}

.buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 26px;
    border: none;
    border-radius: 999px; /* pill */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(43, 30, 63, 0.12);
}

.btn-yes {
    background: linear-gradient(135deg, #b896d4 0%, #8b5fbf 100%);
    color: white;
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 95, 191, 0.4);
}

.btn-maybe {
    background: linear-gradient(135deg, #d4c5e8 0%, #c9a8d8 100%);
    color: #2b1e3f;
}

.btn-maybe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 216, 0.4);
}

.btn-close {
    background: linear-gradient(135deg, #8b5fbf 0%, #6b4a8f 100%);
    color: white;
    margin-top: 15px;
}

.note {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* RSVP output */
.rsvp-output {
    margin-top: 10px;
}

.typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f6f0ff;
    color: #8b5fbf;
    box-shadow: 0 4px 15px rgba(139, 95, 191, 0.12);
}

.typing .dot {
    width: 6px;
    height: 6px;
    background: #b896d4;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1s infinite ease-in-out;
}

.typing .dot:nth-child(2) { animation-delay: 0.15s; }
.typing .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
    40% { transform: translateY(-4px); opacity: 1; }
}

.typing-text {
    font-size: 0.95rem;
}

.message-card {
    margin: 12px auto 0;
    max-width: 520px;
    text-align: left;
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(139, 95, 191, 0.18);
}

.message-card strong {
    color: #8b5fbf;
}

.hidden { display: none; }

.footer {
    text-align: center;
    margin-top: 24px;
    animation: fadeIn 0.8s ease-in 0.4s both;
}

.calm-message {
    color: #a37cc4;
    font-size: 1rem;
    margin-bottom: 8px;
}

.signature {
    color: #b896d4;
    font-style: italic;
    font-size: 0.95rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 95, 191, 0.3);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 28px;
    max-width: 540px;
    width: 92%;
    box-shadow: 0 20px 60px rgba(43, 30, 63, 0.18);
    animation: slideUp 0.4s ease-out;
    text-align: center;
}

.modal-body p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Parameters modal styling */
.param-modal {
    text-align: left;
}

.param-title {
    color: #8b5fbf;
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.param-desc {
    color: #6b5f8b;
    font-size: 0.98rem;
    margin-bottom: 12px;
}

.param-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e4d4f4;
    border-radius: 14px;
    outline: none;
    resize: vertical;
    font-size: 1rem;
    background: #fdfbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 2px 8px rgba(139, 95, 191, 0.08);
}

.param-textarea:focus {
    border-color: #b896d4;
    box-shadow: 0 0 0 4px rgba(184, 150, 212, 0.15), inset 0 2px 8px rgba(139, 95, 191, 0.08);
}

.param-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 600px) {
    .title {
        font-size: 2rem;
    }
    
    .card {
        padding: 25px;
    }
    
    .roles {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs {
        transform: rotate(90deg);
    }
    
    .buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

