/* ═══════════════════════════════════════════════════════
   GREETING POPUP — Wielkanoc 2026
   ═══════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────── */
#greeting-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(
        135deg,
        rgba(10, 40, 20, 0.82) 0%,
        rgba(20, 60, 30, 0.80) 50%,
        rgba(8, 35, 18, 0.85) 100%
    );
    backdrop-filter: blur(14px) saturate(0.6);
    -webkit-backdrop-filter: blur(14px) saturate(0.6);
    cursor: pointer;

    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#greeting-overlay.visible {
    opacity: 1;
}

/* ── Konfetti canvas ────────────────────────────────── */
#greeting-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

/* ── Box (animowany wrapper) ─────────────────────────── */
#greeting-box {
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    transform: translateY(40px) scale(0.92);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

#greeting-overlay.visible #greeting-box {
    transform: translateY(0) scale(1);
}

/* ── Kartka ───────────────────────────────────────────── */
#greeting-card {
    position: relative;
    background: #fffef5;
    padding: 0;
    max-width: min(460px, calc(100vw - 48px));
    border-radius: 4px;
    overflow: visible;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.12) inset,
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 50px 100px rgba(0, 0, 0, 0.25);
}

/* Dekoracyjny pasek górny w kolorach wielkanocnych */
#greeting-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        #f97316 0%,
        #facc15 20%,
        #4ade80 40%,
        #60a5fa 60%,
        #c084fc 80%,
        #f97316 100%
    );
    border-radius: 0 0 4px 4px;
    z-index: 0;
}

/* ── Zdjęcie ─────────────────────────────────────────── */
#greeting-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px 4px 0 0;
}

/* ── Tekst życzeń ───────────────────────────────────── */
#greeting-text {
    padding: 20px 24px 22px;
    text-align: center;
    background: #fffef5;
    border-top: 1px solid rgba(0,0,0,0.06);
}

#greeting-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 700;
    color: #1a4a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#greeting-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.8rem, 2vw, 0.88rem);
    font-weight: 400;
    color: #4a6a4a;
    margin: 0;
    line-height: 1.6;
}

#greeting-text .greeting-sig {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2764EA;
    letter-spacing: 0.03em;
}

/* ── Przycisk zamknięcia ─────────────────────────────── */
#greeting-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    color: #555;
    z-index: 10;
}

#greeting-close svg {
    width: 14px;
    height: 14px;
    stroke: #444;
    stroke-width: 2.2;
    stroke-linecap: round;
}

#greeting-close:hover {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* ── Przycisk "Przejdź do strony" ────────────────────── */
#greeting-enter {
    background: #2764EA;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Montserrat', inherit;
    padding: 11px 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(39, 100, 234, 0.4);
}

#greeting-enter svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 0.25s;
    flex-shrink: 0;
}

#greeting-enter:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(39, 100, 234, 0.5);
}

#greeting-enter:hover svg {
    transform: translateX(4px);
}

/* ── Dekoracyjne emoji pisanki (kąty karty) ─────────── */
.greeting-egg {
    position: absolute;
    font-size: 1.6rem;
    pointer-events: none;
    animation: eggFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    z-index: 2;
}

.greeting-egg:nth-child(1) { top: -18px; left: -18px; animation-delay: 0s; }
.greeting-egg:nth-child(2) { top: -18px; right: -18px; animation-delay: 0.6s; }
.greeting-egg:nth-child(3) { bottom: -18px; left: -18px; animation-delay: 1.2s; }
.greeting-egg:nth-child(4) { bottom: -18px; right: -18px; animation-delay: 1.8s; }

@keyframes eggFloat {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%       { transform: translateY(-6px) rotate(8deg); }
}

/* ── Responsywność ───────────────────────────────────── */
@media (max-width: 480px) {
    #greeting-card {
        max-width: calc(100vw - 32px);
    }

    #greeting-text {
        padding: 14px 