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

body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-family: 'Inter', sans-serif;
    background: #f5f0e8;
}

/* =========================================
   BACKGROUND MOSAIC
   ========================================= */

.mosaic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    gap: 20px;
    padding: 20px;
    z-index: 0;
}

.mosaic-column {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* ---- Scrolling columns ---- */
.scroll-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    will-change: transform;
}

.scroll-inner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 2px 16px rgba(80, 60, 40, 0.1);
}

/* =========================================
   WARM OVERLAY
   ========================================= */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 240, 232, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* =========================================
   CONFETTI CANVAS
   ========================================= */

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* =========================================
   ENVELOPE
   ========================================= */

.envelope {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 360px;
    height: 230px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.envelope.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    pointer-events: none;
}

.envelope-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #dc2626, #b91c1c);
    border-radius: 18px;
    box-shadow:
        0 20px 60px rgba(185, 28, 28, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-radius: 18px 18px 0 0;
    z-index: 1;
}

.envelope-seal {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 13px 30px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.envelope-seal:hover {
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* =========================================
   MESSAGE CARD
   ========================================= */

.message-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: #fffdf7;
    border-radius: 20px;
    padding: 48px 44px 36px;
    text-align: center;
    max-width: 460px;
    min-width: 360px;
    box-shadow:
        0 12px 50px rgba(120, 60, 30, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
    user-select: none;
}

.message-card.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    pointer-events: none;
}

.message-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: #3d2c1e;
    line-height: 1.55;
    margin-bottom: 24px;
}

.message-hint {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(140, 110, 75, 0.45);
}

/* =========================================
   POLL CONTAINER (WARM GLASSMORPHISM)
   ========================================= */

.poll-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: rgba(255, 252, 247, 0.7);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(200, 180, 155, 0.3);
    border-radius: 28px;
    padding: 48px 56px;
    text-align: center;
    min-width: 420px;
    max-width: 520px;
    box-shadow:
        0 8px 40px rgba(120, 90, 50, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.poll-container.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    pointer-events: none;
}

.poll-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(140, 110, 75, 0.6);
    margin-bottom: 28px;
}

.poll-question {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 400;
    color: #3d2c1e;
    line-height: 1.3;
    margin-bottom: 40px;
}

.poll-question em {
    font-style: italic;
    color: #c45d3e;
}

.poll-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 14px 44px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    user-select: none;
}

.btn-yes {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff;
    box-shadow: 0 4px 20px rgba(248, 113, 113, 0.35);
}

.btn-yes:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.5);
    transform: scale(1.03);
}

.btn-no {
    background: rgba(140, 110, 75, 0.08);
    color: rgba(61, 44, 30, 0.65);
    border: 1px solid rgba(140, 110, 75, 0.18);
}

.btn-no:hover {
    background: rgba(140, 110, 75, 0.15);
    color: rgba(61, 44, 30, 0.85);
}

/* =========================================
   SUCCESS MESSAGE
   ========================================= */

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.success-message.visible {
    opacity: 1;
}

.success-message h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 600px) {
    .mosaic-bg {
        gap: 12px;
        padding: 12px;
    }

    .scroll-inner {
        gap: 12px;
    }

    .poll-container {
        min-width: unset;
        width: 90vw;
        padding: 36px 28px;
    }

    .poll-question {
        font-size: 28px;
    }

    .success-message h1 {
        font-size: 32px;
        padding: 0 20px;
    }

    .btn {
        padding: 12px 32px;
        font-size: 14px;
    }

    .envelope {
        width: 300px;
        height: 190px;
    }

    .message-card {
        min-width: unset;
        width: 88vw;
        padding: 36px 24px 28px;
    }

    .message-text {
        font-size: 18px;
    }
}
