/* Easter Egg „Nugget“ (nugget.js) */
.nugget-layer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    background: radial-gradient(circle at 50% 60%, rgba(245, 197, 24, 0.18), rgba(46, 47, 49, 0.12) 70%);
    animation: nugget-fade-in 0.3s ease-out both;
}
.nugget-layer.nugget-out { animation: nugget-fade-out 0.4s ease-in both; }

.nugget-walker {
    position: absolute;
    bottom: 12vh;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: nugget-walk 6s cubic-bezier(0.4, 0, 0.6, 1) both;
}

.nugget-figure {
    width: 120px;
    height: 100px;
    order: 2;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.25));
    animation: nugget-hop 0.5s ease-in-out infinite alternate;
}
.nugget-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f5c518;
    background: #fff;
}

.nugget-bubble {
    order: 1;
    max-width: min(280px, 80vw);
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff;
    border-top: 3px solid #e2001a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    color: #2e2f31;
    font: 14px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: center;
    animation: nugget-pop 0.4s 0.6s ease-out both;
}
.nugget-bubble strong { display: block; }
.nugget-bubble span { display: block; margin-top: 4px; color: #6d6e70; font-size: 12px; }

.nugget-spark {
    position: absolute;
    top: -30px;
    left: var(--x);
    color: #f5c518;
    font-size: calc(16px * var(--s));
    text-shadow: 0 0 6px rgba(255, 220, 80, 0.9);
    animation: nugget-fall 2.6s var(--d) linear both;
}

@keyframes nugget-walk {
    0% { transform: translateX(-160px); }
    30%, 70% { transform: translateX(calc(50vw - 60px)); }
    100% { transform: translateX(calc(100vw + 160px)); }
}
@keyframes nugget-hop {
    from { transform: translateY(0) rotate(-4deg); }
    to { transform: translateY(-14px) rotate(4deg); }
}
@keyframes nugget-pop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes nugget-fall {
    from { transform: translateY(0) rotate(0); opacity: 1; }
    to { transform: translateY(110vh) rotate(360deg); opacity: 0.2; }
}
@keyframes nugget-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nugget-fade-out { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .nugget-walker { left: 50%; transform: translateX(-50%); animation: none; }
    .nugget-figure, .nugget-spark { animation: none; }
    .nugget-spark { display: none; }
}
