/**
 * @file Start page pizza that peeks in from the bottom corner (includes/pizza_invite.php).
 */
.pizza-invite { position: fixed; right: 16px; bottom: 24px; z-index: 70; display: flex; align-items: flex-end; gap: 4px;
    max-width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.pizza-invite[hidden] { display: none; }
.pizza-invite > * { pointer-events: auto; }
.pizza-invite-slice { flex: 0 0 auto; width: 96px; height: 96px; filter: drop-shadow(0 6px 10px rgba(120, 60, 20, .25));
    transform: translateY(140%) rotate(-25deg); transition: transform .6s cubic-bezier(.2, 1.4, .4, 1); }
.pizza-invite.is-in .pizza-invite-slice { transform: translateY(0) rotate(-8deg); animation: pizza-wiggle 2.8s 1s ease-in-out infinite; }
.pizza-invite-bubble { position: relative; order: -1; margin-bottom: 64px; padding: 14px 16px 14px; border-radius: 5px;
    background: #fff; color: var(--djk-ink, #2e281f); box-shadow: 0 10px 28px rgba(60, 30, 10, .18); border: 2px solid #f6c453;
    opacity: 0; transform: scale(.85); transform-origin: bottom right; transition: opacity .3s .35s, transform .3s .35s; }
.pizza-invite.is-in .pizza-invite-bubble { opacity: 1; transform: scale(1); }
.pizza-invite-bubble::after { content: ""; position: absolute; right: -9px; bottom: 16px; width: 14px; height: 14px; background: #fff;
    border-right: 2px solid #f6c453; border-bottom: 2px solid #f6c453; transform: rotate(-45deg); }
.pizza-invite-bubble p { margin: 0 22px 10px 0; font-size: .95rem; line-height: 1.4; }
.pizza-invite-go { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 5px;
    background: var(--djk-terracotta, #dd6b3a); color: #fff; font-weight: 800; font-size: .9rem; text-decoration: none; }
.pizza-invite-go:hover { background: var(--djk-terracotta-dark, #c2582c); text-decoration: none; }
.pizza-invite-go .icon { width: 18px; height: 18px; }
.pizza-invite-close { position: absolute; top: 6px; right: 6px; display: flex; width: 28px; height: 28px; padding: 0; border: 0;
    border-radius: 5px; background: transparent; color: var(--djk-gray, #8f8574); cursor: pointer; align-items: center; justify-content: center; }
.pizza-invite-close .icon { width: 18px; height: 18px; transform: rotate(45deg); }
.pizza-invite.is-out .pizza-invite-slice { transform: translateY(140%) rotate(20deg); transition-duration: .35s; }
.pizza-invite.is-out .pizza-invite-bubble { opacity: 0; transition-delay: 0s; }
@keyframes pizza-wiggle {
    0%, 70%, 100% { transform: translateY(0) rotate(-8deg); }
    78% { transform: translateY(-6px) rotate(-14deg); }
    86% { transform: translateY(0) rotate(-2deg); }
}
@media (max-width: 860px) {
    .pizza-invite { right: 10px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
    .pizza-invite-slice { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
    .pizza-invite-slice, .pizza-invite-bubble { transition: none; }
    .pizza-invite.is-in .pizza-invite-slice { animation: none; }
}
